---
title: "Delete document"
method: POST
path: "/api/v1/delete_document"
---

# Delete document

`POST /api/v1/delete_document`

## Request

- Base URL: `https://offprint.io`
- URL: `https://offprint.io/api/v1/delete_document`
- Auth: HTTP bearer

Soft-delete a document you own. It disappears from URLs and listings immediately and is recoverable by support for 30 days. Requires the owner role.

## Request body

- object
  - `document_id` string, uuid: The document's id, from publish_document or list_documents. Pass this or slug.
  - `slug` string: The document's slug, e.g. 'roadmap-k3n8qz'. Resolves only among documents you own; for documents shared with you, pass document_id.

## Response `200`

Success.

- object
  - `deleted` boolean, required

## Other responses

- `400`: Invalid arguments.
- `401`: Missing, expired or revoked API key.
- `403`: The key's scope, restriction or role does not allow this.
- `404`: Not found, or outside the key's restriction.
- `409`: The document changed since expected_revision.
- `429`: A plan limit or daily quota was reached.

---

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