Applies to: all versions
This article describes what to do in case you have one or more VMs marked as invalid or orphaned in your ESXi hypervisor.
This situation may occur when you delete a datastore before VMs.
1. When you try to "unregister/delete" an invalid VM using ESXi Embedded Host Client, both options are greyed out.
2. To solve it, just select the invalid VMs together with one running VM (eg. "SynetoOS" in picture below).
3. Now the "Unregister" option is available and you can perform this action.
NOTE: On SynetoOS 4.x VMs are automatically unregistered and deleted when you delete a datastore.