> ## Documentation Index
> Fetch the complete documentation index at: https://00doc-web.vercel.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# delete_document

> Permanently delete a document and all of its versions and share links.

# 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"
```

<Warning>
  Deleting a document invalidates its share URLs. Anyone with an old link will see a not-found page.
</Warning>

## Notes

* Maps to **`DELETE /api/v1/documents/:id`** on the REST API (returns `204` with no body).

<Card title="get_document" icon="download" href="/api-reference/get-document" />
