VMware Cloud Community
Scissor
Virtuoso
Virtuoso
Jump to solution

ESX3i - Can I Delete Snapshots from console/command line?

In ESX3i deleting a larger snapshot from the VI Client takes so long that the client times out and appears to block all connected VI Clients. Is there a way I can delete snapshots from the (unsupported) console?

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Yes you can, just know it's unsupported but works, take a look here:

vim-cmd vmsvc/snapshot.removeall [VmId]
vim-cmd vmsvc/snapshot.remove [VmId] [removeChildren] [snapshotLevel] [snapshotIndex]

You can also take a look at the vCLI/RCLI Utility snapshotmanager.pl

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
3 Replies
lamw
Community Manager
Community Manager
Jump to solution

Yes you can, just know it's unsupported but works, take a look here:

vim-cmd vmsvc/snapshot.removeall [VmId]
vim-cmd vmsvc/snapshot.remove [VmId] [removeChildren] [snapshotLevel] [snapshotIndex]

You can also take a look at the vCLI/RCLI Utility snapshotmanager.pl

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
Scissor
Virtuoso
Virtuoso
Jump to solution

Cool I am going to try that now!

Looks like I get a list of the VmIds by running the vmsvc/getallvms command. cool....

0 Kudos
Scissor
Virtuoso
Virtuoso
Jump to solution

To list out the Vmids for all your VMs:

vim-cmd vmsvc/getallvms

Then take the Vmid of the machine you want to delete all snapshots from and run:

vim-cmd vmsvc/snapshot.removeall [VmId]

Thank you lamw !

0 Kudos