Remove-Snapshot Command | Vmware PowerCLI Reference

Remove-Snapshot

This cmdlet removes the specified virtual machine snapshots. If the value of the RemoveChildren parameter is $true, the cmdlet removes the child snapshots as well.

Syntax

Remove-Snapshot
-Snapshot < Snapshot[] >
[-ProgressAction < ActionPreference > ]
[-RemoveChildren ]
[-RunAsync ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Snapshot Snapshot[] named
  • pipeline
Specifies the snapshots you want to remove.
optional ProgressAction ActionPreference named
optional RemoveChildren SwitchParameter named
Indicates that you want to remove the children of the specified snapshots as well.
optional RunAsync SwitchParameter named
Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run "help About_RunAsync" in the VMware PowerCLI console.

Output

Examples

Example 1

Remove-Snapshot -Snapshot $snapshot1 -RemoveChildren

Removes the snapshot in the $snapshot variable and its children.

Related Commands

Snapshot

This cmdlet retrieves the virtual machine snapshots available on a vCenter Server system.

This cmdlet creates a new snapshot of a virtual machine.

This cmdlet removes the specified virtual machine snapshots.

This cmdlet modifies the specified virtual machine snapshot.