---
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` string, required — The filepath of the document that you are deleting. A `404 Not Found` status code will be returned if no document with this path was found.

## Response `200`

Successful Response

- DefaultResponse
  - `message` string — This string will always be "Success!". This may change in the future.

## Other responses

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

---

[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/c95681b13dc5/schema)
