qm-destroy:tldr:d004e
qm-destroy: Destroy a specific virtual machine ignoring locks and forcing destroy.
$ sudo qm destroy ${vm_id} --skiplock
try on your machine
This command is used to destroy a virtual machine (VM) using the Proxmox VE hypervisor. The command is executed with elevated privileges using sudo.
Here's the breakdown of the command:
sudo
: It stands for "superuser do" and is used to run commands with root or administrative privileges.qm
: It is the command-line tool for managing virtual machines in Proxmox VE.destroy
: This subcommand is used to destroy, or in other words, delete a virtual machine.${vm_id}
: This is a placeholder indicating that you need to substitute it with the actual ID of the VM you want to destroy. The VM ID is a unique identifier assigned to each virtual machine in Proxmox VE.--skiplock
: This option is used to bypass the lock mechanism that prevents multiple operations on a single virtual machine at the same time. It allows you to forcefully destroy the VM even if it is locked.
By executing this command and replacing ${vm_id}
with the actual ID of the VM, you will permanently delete the specified virtual machine, disregarding any locks that might be in place.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.