Graniite Docs

Delete an item.

Write capability. Scoped tokens require ≥1 in-scope folder membership; out-of-scope returns 404. Cascade is automatic: outputs / chunks / folder_items via FK CASCADE; manual-upload storage objects queued by the delete_orphan_manual_content trigger for the 30-min cron drainer. Per-token rate limit: 30/hr.

DELETE
/items/{id}

Write capability. Scoped tokens require ≥1 in-scope folder membership; out-of-scope returns 404. Cascade is automatic: outputs / chunks / folder_items via FK CASCADE; manual-upload storage objects queued by the delete_orphan_manual_content trigger for the 30-min cron drainer. Per-token rate limit: 30/hr.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user bearer token minted at /settings/integrations. Format: 'lev_' followed by 32 base64url chars. Each token carries a capability set (read | write) and a folder scope (whole library or a list of specific folders). Per-endpoint requirements are noted on each operation.

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/items/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "ok": true
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "rate_limited",
  "retry_after_sec": 0
}