pve_vm_delete
Delete a Proxmox VM or container permanently. Requires confirm=true to destroy the guest and disks irreversibly, with optional purge from jobs and HA.
Instructions
Delete a VM or container permanently. DESTRUCTIVE.
Applies to: QEMU VMs and LXC containers, located by ``vmid`` (``node``
optional and auto-resolved). Requires ``confirm=true``: the guest and
ALL of its disks are destroyed irreversibly (backups on backup storage
are kept). ``purge=true`` additionally removes the vmid from backup
jobs, replication and HA configuration.
Side effects: permanently destroys the guest. The guest must be stopped
first (PVE rejects deleting a running guest). Waits up to
PVE_MCP_TASK_WAIT seconds; returns JSON with the deleted ``vmid``/
``node``/``type`` and ``task``.
Source: DELETE /nodes/{node}/{qemu|lxc}/{vmid}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | ||
| vmid | Yes | ||
| purge | No | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |