Sometimes when you delete a VM, you will see in vCenter the machine doesn’t get removed fully.
You will see ServerName (orphaned).
There are a few ways to attempted to delete the VM:
Deleting an orphaned virtual machine when the Remove option is not available (1011468):
How to delete VM’s from vSphere Client if they are stuck?
Use PowerCLI to Delete VM
- Open PowerShell as Administrator
- Ensure the PowerCLI is imported:
- Connect to vCenter:
Connect VI-Server <FQDN of vCenter>
- Display list of VMs:
- Delete VM:
Remove-VM <VM to delete>
NB: If the VM name has spaces, then make sure you surround the name in quotes.