We help IT Professionals succeed at work.
Get Started

Remove Snapshot with Command line:

jskfan asked
Last Modified: 2020-03-05
Remove Snapshot with Command line:

I am trying to remove snapshot using the command lines below.  Retrieving the VMID then Removing snapshots related to that VMID:

 vim-cmd vmsvc/getallvms
Vmid   Name                File                 Guest OS    Version   Annotation
50     VM1    [Shared-Datastore] VM1/VM1.vmx   otherGuest   vmx-14

[root@unknown000c290ed7cb:/vmfs/volumes/5e52777e-3a92a27c-79e3-000c29b2122f/VM1]  vim-cmd vmsvc/snapshot.removeall 50
Remove All Snapshots:

however when I run the ls -lha  command I still see the snapshot there:
-rw-------    1 root     root        6.0M Feb 28 10:19 VM1-000001-sesparse.vmdk
-rw-------    1 root     root         300 Feb 28 10:19 VM1-000001.vmdk

Open in new window

in the snapshot manager there is no Snapshot showing.

Any Help ?

Thank you
Watch Question
VMware and Virtualization Consultant
Expert of the Year 2017
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE