Multiselect remove from Pool

tsumaru720

Renowned Member
May 1, 2016
66
2
73
45
Hi Guys

When adding resources to a pool, you click the add button and a box comes up where you can multi-select VMs to add which is great.

When removing, you have to do them one by one which is quite cumbersome if you need to remove a large number of VMs - Is there any chance you can do a multi-select like there is for "add"?

Thanks
Simon
 
On the node where the VM's are to be removed you can use pvesh. eg pvesh get /nodes/{node}/qemu | grep vmid | awk '{print $3}' will give you a list of vmid's on the specific node.
for each vmid
do
pvesh delete /nodes/{node}/qemu/{vmid}
done