Delete Document
documents:write role.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
DELETE /v1/documents/
DELETE /v1/documents/{document_id}
documents:write role.
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your API key |
| Parameter | Type | Description |
|---|---|---|
document_id | string | The document ID |
curl -X DELETE https://api.surfacedocs.dev/v1/documents/doc_abc123 \
-H "X-API-Key: sd_live_..."
| Code | Description |
|---|---|
| 404 | Document not found |
| 403 | Access denied (not the document owner) |