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

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

Parameters

Required Parameter Name Type Position Features Description
required
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.

    Output

    Examples


    Example 1

    Remove-Snapshot -Snapshot $snapshot1 -RemoveChildren

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

    Related Commands

    Feedback

    Was this page helpful?