---
title: "Delete documents"
method: POST
path: "/v1/namespaces/{namespace}/documents/delete"
tags: ["Documents"]
---

# Delete documents

`POST /v1/namespaces/{namespace}/documents/delete`

Deletes documents from a namespace by their IDs.

## Request body

- DeleteDocumentsRequest
  - `document_ids` string[], required

## Response `200`

Successful response

- DeleteDocumentsResponse
  - `documents_deleted` integer, required

## Other responses

- `401` — Missing or invalid API key.

---

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