Remove-Snapshot Command | Vmware PowerCLI Reference


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.


-Snapshot < Snapshot[] >
[-RemoveChildren ]
[-RunAsync ]


Required Parameter Name Type Position Features Description
Snapshot Snapshot[] named
  • pipeline
Specifies the snapshots you want to remove.
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.



Example 1

Remove-Snapshot -Snapshot $snapshot1 -RemoveChildren

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

Related Commands


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.