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

# Delete Document

`DELETE /documents/{document_id}`

## Request

- Base URL: `https://api.morphik.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.morphik.ai/documents/{document_id}`
- Auth: none declared

Delete a document and all associated data.

This endpoint deletes a document and all its associated data, including:
- Document metadata
- Document content in storage
- Document chunks and embeddings in vector store

## Path parameters

- `document_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- DocumentDeleteResponse: Response for document deletion endpoint
  - `status` string, required
  - `message` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-01-22** `2d9291c3821d`: 2 info
  - `header` request parameter `authorization` list-of-types was widened by adding types `null`
  - for the `header` request parameter `authorization`, the type was generalized from `string` to no type

[Operation history](https://skmtc.dev/morphik-org/apis/morphik-api/changes/documents/:document_id/delete.md)

---

[API](https://skmtc.dev/morphik-org/apis/morphik-api.md) - [All operations](https://skmtc.dev/morphik-org/apis/morphik-api/llms.txt) - [OpenAPI document](https://skmtc.dev/morphik-org/apis/morphik-api/revisions/45d77e08d406?raw)
