← 返回命令列表

Linux command

qm-destroy 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Destroy

qm destroy 100

Example

qm destroy 100 --destroy-unreferenced-disks

Example

qm destroy 100 --purge

Example

qm destroy 100 --purge --destroy-unreferenced-disks

Force

sudo qm destroy 100 --skiplock

说明

qm destroy permanently removes a virtual machine and all associated volumes from Proxmox VE. The operation also removes any VM-specific permissions and firewall rules. The --purge option removes the VMID from backup jobs, replication jobs, and high availability configuration. The --destroy-unreferenced-disks option removes disks that are not referenced in the VM configuration but have a matching VMID across all enabled storages. The --skiplock option bypasses safety locks but requires root privileges.

参数

--destroy-unreferenced-disks _boolean_
If set, additionally destroy all disks not referenced in the config but with a matching VMID from all enabled storages. Default: 0.
--purge _boolean_
Remove VMID from configurations, like backup and replication jobs and HA.
--skiplock _boolean_
Ignore locks. Only root is allowed to use this option.

FAQ

What is the qm-destroy command used for?

qm destroy permanently removes a virtual machine and all associated volumes from Proxmox VE. The operation also removes any VM-specific permissions and firewall rules. The --purge option removes the VMID from backup jobs, replication jobs, and high availability configuration. The --destroy-unreferenced-disks option removes disks that are not referenced in the VM configuration but have a matching VMID across all enabled storages. The --skiplock option bypasses safety locks but requires root privileges.

How do I run a basic qm-destroy example?

Run `qm destroy 100` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --destroy-unreferenced-disks _boolean_ do in qm-destroy?

If set, additionally destroy all disks not referenced in the config but with a matching VMID from all enabled storages. Default: 0.