---
title: "Delete a document"
method: DELETE
path: "/documents/{id}"
---

# Delete a document

`DELETE /documents/{id}`

## Request

- Base URL: `https://api.unmarkdown.com/v1`
- URL: `https://api.unmarkdown.com/v1/documents/{id}`
- Auth: HTTP bearer

Permanently deletes a document. If the document is published, it will be unpublished first. This action cannot be undone.

## Path parameters

- `id` string, uuid, required

## Response `200`

Document deleted

- object
  - `success` boolean

## Other responses

- `401`: Authentication required
- `404`: Resource not found
- `500`: Internal server error

---

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