Skip to content

Remove-PveNodesStoragePrunebackups

Prune backups. Only those using the standard naming scheme are considered.

API: DELETE /nodes/{node}/storage/{storage}/prunebackups, Proxmox VE API viewer

Remove-PveNodesStoragePrunebackups
[-PveTicket <PveTicket>]
-Node <string>
[-PruneBackups <string>]
-Storage <string>
[-Type <string>]
[-Vmid <int>]
[<CommonParameters>]
Parameter Type Required Description
-PveTicket PveTicket No Ticket data connection.
-Node string Yes The cluster node name.
-PruneBackups string No Use these retention options instead of those from the storage configuration.
-Storage string Yes The storage identifier.
-Type string No Either ‘qemu’ or ‘lxc’. Only consider backups for guests of this type. Values: qemu, lxc.
-Vmid int No Only prune backups for this 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.