Skip to main content
SnapCenter 5.0 cmdlets

Remove-SdSnapshot

Contributors

Removes Snapshot copies created on Windows disks, SMB shares, or storage system volumes.

Syntax

Remove-SdSnapshot [-Path]  <Object[]>  [-Snapshot]  <String[]>  [-Session]  <String>  [-Host]  <String>

Detailed Description

Removes Snapshot copies created on Windows disks, SMB shares, or storage system volumes.Related cmdlets: New-SdSnapshot, Rename-SdSnapshot, and Restore-SdSnapshot

Parameters

Name Description Required? Pipeline Input Default Value

Path

Specifies the SMB shares, volume, or logical disk for the Snapshot copies you want to delete. You cannot mix a logical disk or mount point with SMB shares in the same input path.

true

true (ByPropertyName)

Snapshot

Specifies the list of Snapshot copies you want to delete.

true

true (ByPropertyName)

Session

Specifies the session ID from Open-SmConnection.

false

true (ByPropertyName)

Host

Specifies the name or IP address of the host on which you execute the operation. The default is your local machine.

false

true (ByPropertyName)

Examples

Example 1: Removing a Snapshot copy on a SMB share

 PS C:\> Remove-SdSnapshot -Path "\\172.17.12.101\share" -Snapshot "snapshot_1"

This example syntax removes the Snapshot copy snapshot_1 created on SMB share \\172.17.12.101\share.

Example 2: Removing specified Snapshot copies on multiple SMB shares

 PS C:\> Remove-SdSnapshot -Path "\\172.17.12.101\share1","\\172.17.12.101\share2" -Snapshot "snapshot_1","snapshot_2"

This example removes Snapshot copies snapshot_1 and snapshot_2 created on SMB shares \\172.17.12.101\share1 and \\172.17.12.101\share2.

Example 3: Removing a new Snapshot copy on a SMB share

 PS C:\> New-SdSnapshot -Path "\\172.17.12.101\share" | Remove-SdSnapshot

This example removes the new Snapshot copy on SMB share \\172.17.12.101\share.

Example 4: Removing a Snapshot copy on a disk

 PS C:\> Remove-SdSnapshot -Path D: -Snapshot "snapshot_1"

This example syntax removes the Snapshot copy snapshot_1 created on the disk drive D:.