From 15c29885e68d4f6d8c5cc64ed4fdd76cbb89e9b6 Mon Sep 17 00:00:00 2001 From: Brett Krueger Date: Tue, 25 Oct 2022 06:03:58 -0500 Subject: [PATCH] qm-destroy: add page (#9054) --- pages/linux/qm-destroy.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/qm-destroy.md diff --git a/pages/linux/qm-destroy.md b/pages/linux/qm-destroy.md new file mode 100644 index 000000000..0ab67546f --- /dev/null +++ b/pages/linux/qm-destroy.md @@ -0,0 +1,20 @@ +# qm destroy + +> Destroy a virtual machine in QEMU/KVM Virtual Machine Manager. +> More information: . + +- Destroy a specific virtual machine: + +`qm destroy {{vm_id}}` + +- Destroy all disks that are not explicitly referenced in a specific virtual machine's configuration: + +`qm destroy {{vm_id}} --destroy-unreferenced-disks` + +- Destroy a virtual machine and remove from all locations (inventory, backup jobs, high availability managers, etc.): + +`qm destroy {{vm_id}} --purge` + +- Destroy a specific virtual machine ignoring locks and forcing destroy: + +`sudo qm destroy {{vm_id}} --skiplock`