---
title: "Delete KB Source"
method: DELETE
path: "/knowledge-base/sources/{sourceId}"
tags: ["Knowledge Base"]
---

# Delete KB Source

`DELETE /knowledge-base/sources/{sourceId}`

Deletes a knowledge base source, its indexed chunks, and associated S3 objects.

## Path parameters

- `sourceId` string, required

## Response `204`

KB source deleted successfully

## Other responses

- `401` — Valid API key required
- `404` — KB source not found
- `default` — Unexpected error

---

[API](https://skmtc.net/attention/apis/attention-service-v2.md) · [All operations](https://skmtc.net/attention/apis/attention-service-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/attention/attention-service-v2/versions/5de55d3804cf/schema)
