2025-03-14 21:59:59 -06:00
|
|
|
# qm destroy
|
|
|
|
|
|
|
|
|
|
> Destroy a virtual machine in QEMU/KVM Virtual Machine Manager.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html#cli_qm_destroy>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Destroy a specific virtual machine:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[des|destroy]}} {{vm_id}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Destroy all disks that are not explicitly referenced in a specific virtual machine's configuration:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[des|destroy]}} {{vm_id}} --destroy-unreferenced-disks`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Destroy a virtual machine and remove from all locations (inventory, backup jobs, high availability managers, etc.):
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`qm {{[des|destroy]}} {{vm_id}} --purge`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Destroy a specific virtual machine ignoring locks and forcing destroy:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`sudo qm {{[des|destroy]}} {{vm_id}} --skiplock`
|