![Forrest logo](/images/logo.png)
qm-destroy:tldr:1e9fc
qm-destroy: Destroy all disks that are not explicitly referenced in a specific virtual machine's configuration.
$ qm destroy ${vm_id} --destroy-unreferenced-disks
try on your machine
The command "qm destroy ${vm_id} --destroy-unreferenced-disks" is used to destroy a virtual machine and its associated resources, including any disks that are not referenced by any other virtual machine.
Here is a breakdown of the command:
- "qm destroy" is the command that is used to delete or destroy a virtual machine in a Proxmox VE cluster.
- "${vm_id}" is a placeholder for the actual ID of the virtual machine that you want to destroy. You would replace "${vm_id}" with the actual ID of the virtual machine.
- "--destroy-unreferenced-disks" is an additional parameter that can be included with the command. When this parameter is used, it ensures that any disks associated with the virtual machine that are not referenced by any other virtual machine will also be destroyed. This helps to clean up any unused or orphaned disks.
By running this command, you will effectively delete the specified virtual machine and remove any associated disks that are no longer referenced by any other virtual machine in your Proxmox VE cluster.
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.