VMware Cloud Community
bvi1006
Enthusiast
Enthusiast
Jump to solution

Just to confirm, is Remove-Snapshot the same as Delete All in VCenter?

Hi,

Not sure why they named these differently, but I just want to be sure that if I remove a snapshot it is the same as being in the GUI and choosing Delete All in the Snapshot Manager (merging them in with the vm). VMWare Update Manager did not delete the snapshots as instructed. I now have to delete them all.

Thanks for any help!

Reply
0 Kudos
1 Solution

Accepted Solutions
mattboren
Expert
Expert
Jump to solution

Hello, bvi1006-

Yes, you can use Remove-Snapshot to remove ("delete") snapshots from VM(s).  It takes a snapshot object as a parameter, so, if you pass just one of a VM's snapshots, this cmdlet will remove just that one by default.  You could also specify the -RemoveChildren parameter, if you want to also remove all of the children of the given snapshot.  Or, to just remove all snapshots from a particular VM, you could use something like:

Get-VM myVM0 | Get-Snapshot | Remove-Snapshot -RunAsync -Confirm:$false

That help?

View solution in original post

Reply
0 Kudos
2 Replies
mattboren
Expert
Expert
Jump to solution

Hello, bvi1006-

Yes, you can use Remove-Snapshot to remove ("delete") snapshots from VM(s).  It takes a snapshot object as a parameter, so, if you pass just one of a VM's snapshots, this cmdlet will remove just that one by default.  You could also specify the -RemoveChildren parameter, if you want to also remove all of the children of the given snapshot.  Or, to just remove all snapshots from a particular VM, you could use something like:

Get-VM myVM0 | Get-Snapshot | Remove-Snapshot -RunAsync -Confirm:$false

That help?

Reply
0 Kudos
bvi1006
Enthusiast
Enthusiast
Jump to solution

Thanks :slightly_smiling_face:

Reply
0 Kudos