Skip to content

Remove-PveNodesQemu

Destroy the VM and all used/owned volumes. Removes any VM specific permissions and firewall rules

API: DELETE /nodes/{node}/qemu/{vmid}, Proxmox VE API viewer

Aliases: Remove-PveQemu

Remove-PveNodesQemu
[-PveTicket <PveTicket>]
[-DestroyUnreferencedDisks <bool>]
-Node <string>
[-Purge <bool>]
[-Skiplock <bool>]
-Vmid <int>
[<CommonParameters>]
Parameter Type Required Description
-PveTicket PveTicket No Ticket data connection.
-DestroyUnreferencedDisks bool No If set, destroy additionally all disks not referenced in the config but with a matching VMID from all enabled storages.
-Node string Yes The cluster node name.
-Purge bool No Remove VMID from configurations, like backup & replication jobs and HA.
-Skiplock bool No Ignore locks - only root is allowed to use this option.
-Vmid int Yes The (unique) ID of the VM.

Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.

A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.