delete_document
Permanently delete a document. This removes all versions and share links for that document. This cannot be undone.
Parameters
| Parameter | Type | Required | Description |
|---|
document_id | uuid | Yes | The document ID to delete |
Returns
Confirmation text on success, or an error message from the API.
Example
Tool call: delete_document
document_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Deleting a document invalidates its share URLs. Anyone with an old link will see a not-found page.
Notes
- Maps to
DELETE /api/v1/documents/:id on the REST API (returns 204 with no body).