Yep, this worked for me --
I used vim-cmd to get all vms and identified the two I needed to get rid of
$ vim-cmd vmsvc/getallvms
the two that I had that were orphaned were at the very top
I edited the vmInventory.xml file
$ vi /etc/vmware/hostd/vmInventory.xml
(use dd to delete a line at a time, :wq to exit and save, :!q to exit without saving)
I then reset these two services:
$ /etc/init.d/hostd restart
then reloaded the web UI and they were gone. Hope this helps someone else.
I can confirm this trick also works with workstation and vSphere 6.5. Nice tip
For me worked connect to vsphere by VMware Workstation and there option to remove was active.
This is the way@
I had the same issue. I could not remove from inventory via the flash vSphere Web Client. I could, however, log into the HTML5 version of the Web Client and had the ability. Another nail in the flash coffin.