---
title: "Delete a document."
method: DELETE
path: "/v1/libraries/{library_id}/documents/{document_id}"
tags: ["beta.libraries.documents"]
---

# Delete a document.

`DELETE /v1/libraries/{library_id}/documents/{document_id}`

Given a library and a document in that library, delete that document. The document will be deleted from the library and the search index.

## Path parameters

- `library_id` string, uuid, required
- `document_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/versions/933c4ebdcd72/schema)
