Skip to main content
Delete documents and folders

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Query Parameters

hardDelete
boolean
default:false

Destroys the records outright instead of moving them to the trash. There is no way back from it - a trashed record can still be restored or purged later.

Example:

false

Body

application/json
documents
object[]
required

Documents and folders to remove, each entry naming one of them and optionally the version it is expected to be at.

Required array length: 1 - 100 elements

Response

Returns the entries that did not go through.

count
integer
required

Number of items the request processed, successful and failed alike.

Example:

22

errors
boolean
required

Whether any item failed. Check it before treating the call as a clean success - the request itself answers 200 even when individual items did not go through.

Example:

false

items
object[]

Per-item outcomes. Endpoints report the failed items here; some also list the successful ones, so read each item's own status rather than inferring it from being listed.