I've been pouring through the documents and example for the official VMWare pyvmomi API and for the life of me I cannot find an obvious way to just nuke a VM off of an ESXi server.
Can anyone provide an example or point me to someone who has implmented this already - it seems like the only alternative is to roll something myself that would
- Shutdown the VM
- Unregister it
- Delete the VM
- Delete the disks that were associated with the VM?
I think each part is there but I really hope someone could point me in the right direction.