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

# Delete Documents

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

## Request

- Base URL: `https://api.phonely.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.phonely.ai/agent/knowledge-base/delete-documents`
- Auth: none declared. Required headers: `authorization`

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.dev/phonely/apis/phonely-api.md) - [All operations](https://skmtc.dev/phonely/apis/phonely-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phonely/apis/phonely-api/revisions/9bfd5599d479?raw)
