My commands are like this, it would be really helpful if the answer is compatible with this type of command.
$vmanager_path --url https://$vcenterip/sdk --username $vcenter_username --password $vcenter_password --operation removeVM --vmName $hostname >/dev/null
Not understanding what you're trying to accomplish, and with what language/tool.
I want to delete all the virtual machine in the vcenter at one go without providing the name of the virtual machines, I will have to fire this command through a vmmanager, language: shell script