Skip to main content

Delete Document

Delete a document and all its blocks. Requires the documents:write role.

Request

Headers

HeaderRequiredDescription
X-API-KeyYesYour API key

Path Parameters

ParameterTypeDescription
document_idstringThe document ID

Example

Response

Status: 204 No Content No response body.

Errors

CodeDescription
404Document not found
403Access denied (not the document owner)