---
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
- `datasource_id` string, required

## Response `204`

Datasource successfully deleted

---

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