1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 02:55:43 +02:00
tldr/pages/linux/qm-destroy.md

21 lines
669 B
Markdown
Raw Normal View History

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