A python sample that demonstrates add and remove ESX hosts.
Install vSphere Automation Python SDK to run the sample: https://github.com/vmware/vsphere-automation-sdk-python