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

# Delete Document

`POST /documents/delete-document`

Deletes a document

A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.

## Request body

- DeleteDocumentRequest
  - `collection_name` string, required — The name of the collection.
  - `path` union, required — The path(s) of the document(s) that you are deleting. Must be either a `string`, or a `list[str]` between 1 and 64 inclusive. A `404 Not Found` status code will be returned if no document(s) with this path was found. If at least one of the paths provided do exist, then `200 OK` will be returned, along with an array of the document paths that were found and thus deleted.
    - string
    - string[]

## Response `200`

Successful Response

- DeleteDocumentResponse
  - `deleted_paths` string[], required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Validation Error

## Changes

- **2026-01-21** `b5badb138367` — 1 warning, 2 info
  - removed the optional property `message` from the response with the `200` status
  - request property `path` list-of-types was widened by adding types `array` to media type `application/json`
  - added the required property `deleted_paths` to the response with the `200` status

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

---

[API](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api.md) · [All operations](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zeroentropy-ai/zeroentropy-api/revisions/5ff1b24060b9/schema)
