v1

latestOpenAPI 3.0.3MIT2026-07-24122271451.2 KB
Documents

Delete documents (bulk)

Delete multiple documents in one request by sending a JSON array. Each element must be an object with an id field (the document ID, same value as elsewhere in the Documents API).

The caller must have permission to delete each document. Documents must belong to the authenticated workspace.

This batch operation returns 200 OK with a JSON body containing an id array of deleted document IDs. That differs from Delete Document (DELETE /public/v1/documents/{id}), which returns 204 No Content for a single document.

delete/public/v1/documents

Request body

idstring required

Document ID to delete.

Example request

[
  {
    "id": "BhVzRcxH9Z2LgfPPGXFUBa"
  }
]

Response

OK — documents were deleted. Response lists deleted document IDs.

idstring[] required

Document IDs that were deleted, in the same order as processed by the API.