---
title: "Delete a document"
method: POST
path: "/documents.delete"
tags: ["Documents"]
---

# Delete a document

`POST /documents.delete`

Deleting a document moves it to the trash. If not restored within 30 days it is permenantly deleted.

## Request body

- object
  - `id` string, required — Unique identifier for the document. Either the UUID or the urlId is acceptable.
  - `permanent` boolean — If set to true the document will be destroyed with no way to recover rather than moved to the trash.

## Response `200`

OK

- object
  - `success` boolean

## Other responses

- `400` — The request failed one or more validations.
- `401` — The API key is missing or otherwise invalid.
- `403` — The current API key is not authorized to perform this action.
- `404` — The specified resource was not found.

## Changes

- **2024-07-06** `7b33b538cd7d` — 12 info
  - added the optional property `data` to the response with the `400` status
  - added the optional property `data` to the response with the `401` status
  - added the optional property `data` to the response with the `403` status
  - added the optional property `data` to the response with the `404` status
  - …8 more

[Change history](https://skmtc.dev/defaulr/apis/outline-api/changes/documents.delete/post.md)

---

[API](https://skmtc.dev/defaulr/apis/outline-api.md) · [All operations](https://skmtc.dev/defaulr/apis/outline-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/defaulr/outline-api/revisions/7b33b538cd7d/schema)
