LinuxCommandLibrary

qm-destroy

Permanently remove a Proxmox virtual machine

TLDR

Destroy a specific virtual machine

$ qm destroy 100
copy
Destroy all unreferenced disks
$ qm destroy 100 --destroy-unreferenced-disks
copy
Destroy and purge from all locations
$ qm destroy 100 --purge
copy
Force destroy ignoring locks
$ sudo qm destroy 100 --skiplock
copy

SYNOPSIS

qm destroy vmid [options]

DESCRIPTION

qm destroy permanently removes a virtual machine from Proxmox VE. It can optionally remove associated disks and purge the VM from all system locations including backup jobs and high availability configuration.
The skiplock option bypasses safety locks but requires root privileges.

PARAMETERS

--destroy-unreferenced-disks

Remove disks not referenced in VM configuration
--purge
Remove from all locations (inventory, backups, HA, etc.)
--skiplock
Ignore locks and force destruction

CAVEATS

Destruction is permanent and cannot be undone. Ensure backups exist before destroying important VMs. Purge option removes all traces including scheduled backups.

HISTORY

Part of Proxmox VE QEMU/KVM management tools for virtual machine administration.

SEE ALSO

qm(1), qm-create(1), qm-clone(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community