---
title: "Delete Kb Document"
method: DELETE
path: "/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}"
tags: ["Knowledge Bases", "Knowledge Bases"]
---

# Delete Kb Document

`DELETE /api/v1/knowledge-bases/{kb_id}/documents/{doc_id}`

Delete a knowledge base document and its chunks.

Note: This intentionally does NOT delete the underlying S3 object for the
linked `documents` row. We may add storage cleanup in a follow-up PR.

## Path parameters

- `kb_id` string, uuid, required
- `doc_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/c0f54348e251/schema)
