This one is really a headscratcher gang. I have a VM which should have been removed from a vCenter long ago. I was attempting to remove it the normal way, but it wasn't going anywhere; just giving an error. When I looked at the files in the VM's folder, nearly all were gone (vmx, log, vmdk). There were a few files called -flat.vmdk, but I wasn't able to do anything with them. I SSH'd into the host and found the VMs folder, but couldn't delete anything that way either. All this, yet the VM is still showing as Powered On.
I seem to recall that there was a way to remove VMs like this; i believe in CLI. However, I can't remember it and now my mind has locked up in frustration for not being able to get this thing to leave.
Does anyone know how to get rid of an unwanted, powered, yet corrupt VM? Particularly, if anyone knows how to do it in our 'Tool of Tools' aka PowerCLI.
Thanks in advance,
Miguel