We help IT Professionals succeed at work.

Delete ESXi flat file

mario00 asked
Last Modified: 2019-01-07
I removed a virtual disk and deleted its files from the disk but the flat file still remains in the data store!  What can i do to delete this file and recover the space on the data store?  ESXi 5.5
Watch Question

Jordan GUERDERIT Manager

If the VM linked to this disk is deleted I don't see any problems to delete the flat VMDK. If you can't delete it, the file is still being used by the system.


i didnt delete the vm, I deleted one of the virtual disks.  The descriptor file is gone but the flat file remains!


The vmx file still has a scsi 3 entry associated with the drive.  Can I manually delete the entry or is there a better way to remove it?  This disk should not exist as it was deleted!

scsi0:3.deviceType = "scsi-hardDisk"
scsi0:3.fileName = "/vmfs/volumes/5371416e-1df8b7c6-ba57-d4ae527ec256/SAS_1/SAS.vmdk"
scsi0:3.ctkEnabled = "TRUE"
sched.scsi0:3.vFlash.enabled = "FALSE"
scsi0:3.present = "FALSE"
scsi0:3.redo = ""
Jordan GUERDERIT Manager

I don't advise you to edit a file manually.
Was the virtual disk removed when the VM was turned off ?

If you really want to modify the file it should work, but maybe think about downloading a copy of the configuration file.


Vm was turned on when file was deleted.  After disk was removed the VM was renamed and migrated to new data store so it would rename the vmdk files.  Noticed afterwards the data store did not recover the space as expected.
VMware and Virtualization Consultant
Expert of the Year 2017
This one is on us!
(Get your first solution completely free - no credit card required)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
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
Empower Your Career
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

Ask ANY Question

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

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.