VMware Cloud Community
Leela_Kishore
Contributor
Contributor

How to remove all the available in a vCenter vms withourt providing the name of the vm, using cli command

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

Tags (1)
2 Replies
daphnissov
Immortal
Immortal

Not understanding what you're trying to accomplish, and with what language/tool.

Leela_Kishore
Contributor
Contributor

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

0 Kudos