Skip to main content
DELETE
Delete an item
Takes a managing key (oc_key_...) or a signed-in session. See Custom connections for how a key is sent. Deletes an item: agents stop using it at once, and it leaves every list. It can be restored for 30 days, with the permissions it had, then it is destroyed. With destroy=true, a deleted item is destroyed now, with its versions and permissions: this cannot be undone. Audited as destroy.
Availability: OneCLI Cloud and self-hosted.

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Path Parameters

id
string
required

The item's id.

Required string length: 1 - 64

Query Parameters

destroy
enum<string>

true: destroy an item already deleted, for good. A live item answers 409.

Available options:
true,
false

Response

Deleted, or destroyed.