This is an archive version of the document. To get the most up-to-date information, see the current version.

Remove-StoragePluginSnapshot

Short Description

Removes snapshots of Universal Storage API integrated systems.

Applies to

Platform: VMware

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

Storage System: IBM Spectrum Virtualize, INFINIDAT InfiniBox, Pure Storage

Syntax

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

Detailed Description

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

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 on common parameters, see the About CommonParameters section of Microsoft Docs.

Example

This example shows how to remove snapshots of several volumes.

You will need to perform the following steps:

  1. Get the volume snapshots you want to remove. To do this, perform the following steps:
  • Run Get-StoragePluginHost to get the storage. Save the result to the $storage variable.
  • Run Get-StoragePluginVolume with the $storage variable to get the storage volumes. Save each volume to a separate variable: $volume1, $volume2, etc.
  • Run Get-StoragePluginSnapshot with the $volume1and $volume2 variables. Save the result to the $snapshot variable.
  1. Remove the snapshots. Run Remove-StoragePluginSnapshot with the $snapshot variable.

$storage = Get-StoragePluginHost -Name "IBM Spectrum"

$volume1 = Get-StoragePluginVolume -Host $storage -Name "VOLUME-01"

$volume2 = Get-StoragePluginVolume -Host $storage -Name "VOLUME-02"

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

Remove-StoragePluginSnapshot -Snapshot $snapshot

Related Commands

Get-StoragePluginHost

Get-StoragePluginVolume

Get-StoragePluginSnapshot