Skip to content

Remove-PveNodesCephOsd

Destroy OSD

API: DELETE /nodes/{node}/ceph/osd/{osdid}, Proxmox VE API viewer

Remove-PveNodesCephOsd
[-PveTicket <PveTicket>]
[-Cleanup <bool>]
-Node <string>
-Osdid <int>
[<CommonParameters>]
Parameter Type Required Description
-PveTicket PveTicket No Ticket data connection.
-Cleanup bool No If set, also destroy the underlying logical volumes via ‘ceph-volume lvm zap --destroy’, remove the volume group’s physical volume with pvremove, and wipe any journal/block.db/block.wal partitions left over from filestore OSDs. Without this flag the LVs and partitions are left intact for inspection.
-Node string Yes The cluster node name.
-Osdid int Yes OSD ID.

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.