Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Remove-HP4Snapshot

Short Description

Removes HPE StoreVirtual storage snapshots.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus

Storage system: HPE StoreVirtual (LeftHand/P4000), HPE StoreVirtual VSA

Syntax

Remove-HP4Snapshot -Snapshot <CSanSnapshot[]> [<CommonParameters>]

Detailed Description

This cmdlet permanently removes a selected HPE StoreVirtual storage snapshot from your virtual infrastructure.

Alias

Remove-VBRHPSnapshot

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Snapshot

Specifies the array of snapshots. The cmdlet will remove these snapshots.

True

Named

True (ByValue,
ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example 1

This example shows how to remove the HPE StoreVirtual storage snapshot.

You will need to perform the following steps:

  1. Run Get-HP4Snapshot to get the snapshot you want to remove. Save the result to the $snapshot variable.
  2. Run Remove-HP4Snapshot with the $snapshot variable.

PS C:\PS> $snapshot = Get-HP4Snapshot -Name "HPE Volume 01 Snapshot"

PS C:\PS> Remove-HP4Snapshot -Snapshot $snapshot

Example 2

This example shows how to remove snapshots of several HPE StoreVirtual storage volumes.

You will need to perform the following steps:

  1. Get the volume snapshots you want to remove.
  • Run Get-HP4Storage to get the storage. Save the result to the $storage variable.
  • Run Get-HP4Volume with the $storage variable to get the storage volumes. Save each volume to a separate variable: $volume1, $volume2, etc.
  • Run Get-HP4Snapshot with the $volume1 and $volume2 variables. Save the result to the $snapshot variable.
  1. Remove the snapshots. Run Remove-HP4Snapshot with the $snapshot variable.

PS C:\PS> $storage = Get-HP4Storage -Name "HPE 3PAR StoreServ"

PS C:\PS> $volume1 = Get-HP4Volume -Host $storage -Name "VOL01"

PS C:\PS> $volume2 = Get-HP4Volume -Host $storage -Name "VOL02"

PS C:\PS> $snapshot = Get-HP4Snapshot -Volume $volume1, $volume2

PS C:\PS> Remove-HP4Snapshot -Snapshot $snapshot

Related Commands

Get-HP4Storage

Get-HP4Volume

Get-HP4Snapshot

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation