VMware Cloud Community
A_S
Enthusiast
Enthusiast

Deleting folder inside Datastore.

Hi,

Wat are the options if i want to delete an orphaned folder inside a datastore. I have vCenter & Datastorename name as input available.

The orphaned folder is result of failed clone that ends up without properly registering VM in vCenter inventory and partially cloned VM files. What i need is some quick rmdir <datastorename>:\\<vmoldername> so i can call retryclone process. Not only files based on search pattern.

I'd like the sdk way if it's possible. Any pointers there?

thanks in advance!

0 Kudos
1 Reply
LucD
Leadership
Leadership

You could have a look at my Orphaned files and folders – Spring cleaning post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos