Docs
Live demo
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.

outcomestring (entity.OperationOutcome)required

Final operation result, or null while the operation is active.

successfailurecancelledpartial
can be null
substatestring (entity.OperationSubstate)required

Qualifies the status and outcome of an operation where they alone would hide what the operator must know. Null when none applies.

rollback_in_progressrolled_backneeds_repairoutcome_unknowninterruptedrequires_approvalholds_lockawaiting_confirmationexpiredtimed_outrescheduled
can be null
cleanup_task_idstring
created_atstring
job_idstring
messagestring

Where a background operation is in the shared lifecycle (decision S1). outcome says how a finished operation ended and substate qualifies the state.

queuedrunningfinished
409

Conflict

Common errors: 400 401 403 404 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close