VMware Cloud Community
PatrickWE
Contributor
Contributor
Jump to solution

Unable to delete a folder in the VMFS partition

Hi,

How to delete a folder on VMFS partition that dos'nt want to be deleted.

Got a folder in the VMFS partition that used to have a test machine in it. Trough the VI, I went and choose the VM and Choose "Delete from Disk", since I did'nt need it anymore... this usually cleans up everything, including the Directory... But in this case, it did'nt. Going to the console ( SSH ), I tried RMDIR , but comes up with directory not empty. LS or Storage browser dos'nt show any files in that folder...

Any way to force a delete...

Thanks \!!!

Reply
0 Kudos
1 Solution

Accepted Solutions
peetz
Leadership
Leadership
Jump to solution

Are there hidden files in the directory? Check with

ls -a

Try to remove the directory with

rm -R dirname

\- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de

View solution in original post

Reply
0 Kudos
2 Replies
peetz
Leadership
Leadership
Jump to solution

Are there hidden files in the directory? Check with

ls -a

Try to remove the directory with

rm -R dirname

\- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Reply
0 Kudos
Schorschi
Expert
Expert
Jump to solution

Footnote... you can do this via the GUI in VC, via the Datastore Browse view, but you have to delete all the items in a given folder first. So, rm -rf, is the fastest method in the long run.

Reply
0 Kudos