---
title: "Delete Knowledge Base Document By Id"
method: DELETE
path: "/v1/knowledge/{kb_id}/documents/{document_id}"
tags: ["API v1", "Knowledge", "Knowledge CRUD", "Knowledge Documents"]
---

# Delete Knowledge Base Document By Id

`DELETE /v1/knowledge/{kb_id}/documents/{document_id}`

## Request

- Base URL: `https://api.xpander.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xpander.ai/v1/knowledge/{kb_id}/documents/{document_id}`
- Auth: API key in header `x-api-key`

Delete knowledge base document by id

## Path parameters

- `kb_id` string, required
- `document_id` string, required

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/725c0066d5df?raw)
