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.
Step 1. When you try to unregister/delete an invalid VM using ESXi Embedded Host Client, both options are greyed out.
Step 2. To solve it, just select the invalid VMs together with one running VM (eg. "SynetoOS" in picture below).
Step 3. Now the "Unregister" option is available and you can perform the action.
NOTE: On SynetoOS 4.x VMs are automatically unregistered and deleted when you delete a datastore.