Skip to main content
Delete a document

Authorizations

Authorization
string
header
required

Authorize using an API key. Send it in the Authorization: Bearer <api-key> header. Only API keys are accepted — session tokens are rejected. Create your first API key in the Circularo web app; further keys can be managed through this API.

Headers

If-Match
string

Makes the request conditional on the resource's current version. Provide the value of the ETag header from a previous response; if the resource has changed since, the request fails with 412 Precondition Failed. Changes made by the platform's own processing of the document — thumbnail rendering, text extraction and read receipts — do not fail the precondition. Omit to operate on the current version unconditionally.

Pattern: ^(\*|"\d+")$
Example:

"\"3\""

Path Parameters

id
string
required

Identifier of the document to delete.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

Query Parameters

permanent
boolean
default:false

When true, the document is permanently deleted and cannot be recovered. When false, it is moved to the trash and can be restored.

Example:

false

Response

The document was deleted.