Remove-HP4Snapshot

Short Description

Removes HPE StoreVirtual storage snapshots.

Note

If the four-eyes authorization is enabled, you cannot run this cmdlet. For more information, see the Four-Eyes Authorization section in the User Guide for VMware vSphere.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

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

Type

Required

Position

Accept
Pipeline
Input

Snapshot

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

Accepts the CSanSnapshot[] object. To get this object, run the Get-HP4Snapshot cmdlet.

True

Named

True (ByValue,
ByProperty
Name)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Remove-HP4SnapshotExample 1. Removing HPE StoreVirtual Storage Snapshot

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

$snapshot = Get-HP4Snapshot -Name "HPE Volume 01 Snapshot"

Remove-HP4Snapshot -Snapshot $snapshot

Perform the following steps:

  1. Run the Get-HP4Snapshot cmdlet. Specify the Name parameter value. Save the result to the $snapshot variable.
  2. Run the Remove-HP4Snapshot cmdlet. Set the $snapshot variable as the Snapshot parameter value.

Remove-HP4SnapshotExample 2. Removing Snapshots of Several HPE StoreVirtual Storage Volumes

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

$storage = Get-HP4Storage -Name "HPE 3PAR StoreServ"

$volume1 = Get-HP4Volume -Host $storage -Name "VOL01"

$volume2 = Get-HP4Volume -Host $storage -Name "VOL02"

$snapshot = Get-HP4Snapshot -Volume $volume1, $volume2

Remove-HP4Snapshot -Snapshot $snapshot

Perform the following steps:

  1. Get the volume snapshots you want to remove.
  • Run the Get-HP4Storage cmdlet. Specify the Name parameter value. Save the result to the $storage variable.
  • Run the Get-HP4Volume cmdlet. Set the $storage variable as the Host parameter value. Specify the Name parameter value. Save each volume to a separate variable: $volume1, $volume2, etc.
  • Run the Get-HP4Snapshot cmdlet. Set the $volume1 and $volume2 variables as the Volume parameter values. Save the result to the $snapshot variable.
  1. Run the Remove-HP4Snapshot cmdlet. Set the $snapshot variable as the Snapshot parameter value.

Related Commands

Page updated 3/4/2024

Page content applies to build 12.3.0.310