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:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`qm {{[des|destroy]}} {{100}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Destroy all disks that are not explicitly referenced in a specific virtual machine's configuration:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`qm {{[des|destroy]}} {{100}} --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.):
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`qm {{[des|destroy]}} {{100}} --purge`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Destroy a specific virtual machine ignoring locks and forcing destroy:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`sudo qm {{[des|destroy]}} {{100}} --skiplock`
|