VMware Cloud Community
lukeglazebrook
Enthusiast
Enthusiast

I'm searching for a simple little script that will delete all VM's in a specific folder, don't suppose anyone has one, thanks in advance for anyone that has

I'm searching for a simple little script that will delete all VM's in a specific folder, don't suppose anyone has one, thanks in advance for anyone that has haven't been able to find anything on Google surprisingly

Reply
0 Kudos
1 Reply
lukeglazebrook
Enthusiast
Enthusiast

Well that was embarassingly simple to figure out...


$vms = get-vm -location "My Folder"


$vms | Remove-VM -DeletePermanently -Confirm:$false





Reply
0 Kudos