---
title: "Delete Documents"
method: POST
path: "/agent/knowledge-base/delete-documents"
---

# Delete Documents

`POST /agent/knowledge-base/delete-documents`

Delete multiple documents from the knowledge base in a single request.

## Headers

- `authorization` string, required

## Request body

- BatchDeleteDocumentRequest
  - `ids` string[], required
  - `type` string
  - `agent_id` string, required

## Response `200`

Successful Response

- DocumentResponse
  - `status` string, required
  - `message` string, required
  - `data` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/phonely/apis/fastapi.md) · [All operations](https://skmtc.net/phonely/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phonely/fastapi/versions/9bfd5599d479/schema)
