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

# Delete a document

`DELETE /documents/{document_id}`

## Request

- Base URL: `https://app.jitprompt.com`
- URL: `https://app.jitprompt.com/documents/{document_id}`
- Auth: HTTP bearer

Delete the document, its sections and its stored file. Agents stop
seeing it immediately.

## Path parameters

- `document_id` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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