Remove-VNXSnapshot

In this article

    Short Description

    Removes Dell EMC VNX storage snapshots.

    Applies to

    Platform: VMware

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

    Storage System: Dell EMC VNX

    Syntax

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

    Detailed Description

    This cmdlet permanently removes a selected Dell EMC VNX 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 about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Example

    This example shows how to remove snapshots of several Dell EMC VNX storage volumes.

    You will need to perform the following steps:

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

    $storage = Get-VNXHost -Name "VNX Storage"

    $volume1 = Get-VNXVolume -Host $storage -Name "VOLUME1"

    $volume2 = Get-VNXVolume -Host $storage -Name "VOLUME2"

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

    Remove-VNXSnapshot -Snapshot $snapshot

    Related Commands

    Get-VNXHost

    Get-VNXVolume

    Get-VNXSnapshot