---
title: "Delete a document"
method: DELETE
path: "/documents/{document_id}"
tags: ["Documents"]
---

# Delete a document

`DELETE /documents/{document_id}`

## Request

- Base URL: `https://api.eu.doconda.com/v1`
- URL: `https://api.eu.doconda.com/v1/documents/{document_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Deletes a document's files, report and events and, for an artifact, its page and data.

## Path parameters

- `document_id` string, required

## Response `204`

Deleted. What it cost stays in your usage.

## Other responses

- `401`: unauthorized (missing, unknown or revoked key; expired session).
- `404`: Not found.
- `409`: document_not_finished: it is still being made; cancel it first.

---

[API](https://skmtc.dev/doconda/apis/doconda-api.md) · [All operations](https://skmtc.dev/doconda/apis/doconda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/doconda/apis/doconda-api/revisions/27d29a7e8902?raw)
