I hope this is possible, but I haven't found a method of removing a Virtual Machine from inventory via the commandline. The reason I'm interested in this command is that I can unregister a VM from the commandline using
vmware-cmd -s unregister /path/to/vmx
and then manually delete the VM directory, the problem is on the MUI (VI Client or Virtual Center) the VM is left orphaned. I'm currently testing ability of sharing a single VMDK across the same ESX Host and by accidently removing from disk, it removes the linked reference of the VMDK. Removing from inventory is safer and you can remove the disk files manually, the problem is I'm creating dozen of VMs at once and it would be nice to be able to run a single commandline to do the same without the affects of "removing from disk"
I've tried to look at some of the vmware-vim-dm/vimsh commands and I haven't been able to find anything that will remove it from inventory.
Any help would great, thanks in advanced.