I'm trying to delete orphand VMDK's from a vSAN datastore.
but not able to find a solution.
I can find the files, but not delete them
And option is to attach them to a new VM, and then delete the VM, but don't have the permissions to create an new VM.
Earlier today I tested with "VMFS" as datastore type, but that didn't work.
I just tested with "vsan" as type, and no result.
Line 76: $fldList is blank
I'll see what I can do to help.
I haven't run across this myself, so let me spin something up in the lab & see if I can provide some guidance.
looking forward to your reply
Just getting back to work this AM, I'm going to attempt to reproduce it.
Keep in mind that on vSAN, everything is an object.
Swap files are objects.
vmdks are objects
snapshots are objects
and the namespace is an object (it just happens to contain the normal config/nvram/etc files)
Will keep that in mind.
Let me know if I shall test anything...
A.Mikkelsen just a quick update.
I don't see a way yet to remove/purge these with the currently exposed vSAN cmdlets.
I'm currently going down the route of getting a directory listing and removing them as normal datastore items.
Unfortunately, it is a little here, little there, that I can look at it.
Appriciate your effort, keep me updated
For not I had to choose the workaround of createinga new VM and the deleting it again - shot life 🙂
I hope you fina a way.