VMware Cloud Community
Lamb88
Contributor
Contributor

Cannot remove vmdk file in vcenter

I have an unused folder that contains a vmdk file. I tried to deleted it, but failed.

Anyone know why? and how to remove it?

0 Kudos
3 Replies
mukeshjaiswal
Contributor
Contributor

Try this.

VMware Knowledge Base

Thanks

Mukesh

0 Kudos
rajen450m
Hot Shot
Hot Shot

Hi,

SSH to ESXi connected to datastore and navigate to the datastore which it resides and run command

rm -r <foldername>

If it is not deleted with the above try adding f

rm -rf <foldername>

Regards,

Raj M Please mark helpful or correct if my answer resolved your issue. Visit www.hypervmwarecloud.com for my blog posts, step-by-step procedures etc.,
0 Kudos
hussainbte
Expert
Expert

You know for sure it is unused?

can you please run below command from the vmdk directory and share output

vmkfstools -D xxxxxx.vmdk

vmkfstools -D xxxxxx-flat.vmdk

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos