---
title: "Deletes a datasource"
method: DELETE
path: "/v2/knowledge/{knowledge_id}/datasources/{datasource_id}"
tags: ["Knowledge Bases"]
---

# Deletes a datasource

`DELETE /v2/knowledge/{knowledge_id}/datasources/{datasource_id}`

Deletes a datasource from a knowledge base. Deleting a datasource will remove it from the knowledge base and all associated chunks. This action is irreversible and cannot be undone.

## Path parameters

- `knowledge_id` string, required — The unique identifier of the knowledge base
- `datasource_id` string, required — The unique identifier of the datasource.

## Response `204`

Datasource successfully deleted

---

[API](https://skmtc.net/orq-ai/apis/orq-ai-api.md) · [All operations](https://skmtc.net/orq-ai/apis/orq-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orq-ai/orq-ai-api/versions/6a22c53a2580/schema)
