DELETE/api/v2/policies/{id}
access:manageAPI token
Queue asynchronous policy cleanup. The policy remains visible and read-only until cleanup completes. A delete that arrives while another request is queuing this cleanup is rejected with 409 cleanup.retry_already_scheduled.
Parameters
Path1 required of 1
idstringpathrequired
Policy ID (UUID)
Responses
202
Accepted
DeletePolicyResponse · 8 fields
terminalbooleanrequired
Whether this operation has finished.
Final operation result, or null while the operation is active.
successfailurecancelledpartialQualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.
rollback_in_progress rolled_back needs_repair outcome_unknown interruptedrequires_approval holds_lock awaiting_confirmation expiredtimed_out rescheduledcleanup_task_idstring
created_atstring
job_idstring
messagestring
statusstring (entity.OperationLifecycle)
Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.
queuedrunningfinished409
Conflict
Common errors: 400 401 403 404 429 503 504. They mean the same for every operation, see Errors.