Remove-NimbleSnapshot
Short Description
Removes HPE Nimble storage snapshots.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Detailed Description
This cmdlet permanently removes a selected HPE Nimble storage snapshot from your virtual infrastructure.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
Snapshot | Specifies the array of snapshots. The cmdlet will remove these snapshots. | True | Named | True (ByValue, | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Example
This example shows how to remove snapshots of several HPE Nimble storage volumes.
You will need to perform the following steps:
- Get the volume snapshots you want to remove.
- Run Get-NimbleHost to get the storage. Save the result to the $storage variable.
- Run Get-NimbleVolume with the $storage variable to get the storage volumes. Save each volume to a separate variable: $volume1, $volume2, etc.
- Run Get-NimbleSnapshot with the $volume1 and $volume2 variables. Save the result to the $snapshot variable.
- Remove the snapshots. Run Remove-NimbleSnapshot with the $snapshot variable.
$storage = Get-NimbleHost -Name "HPE Nimble-FC" $volume1 = Get-NimbleVolume -Host $storage -Name "VOL01" $volume2 = Get-NimbleVolume -Host $storage -Name "VOL02" $snapshot = Get-NimbleSnapshot -Volume $volume1, $volume2 Remove-NimbleSnapshot -Snapshot $snapshot |
Related Commands