---
title: "DELETE /knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"
method: DELETE
path: "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"
---

# DELETE /knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}

`DELETE /knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}`

Deletes a data source from a knowledge base.

## Path parameters

- `knowledgeBaseId` string, required
- `dataSourceId` string, required

## Response `202`

Success

- DeleteDataSourceResponse
  - `knowledgeBaseId` string, required — The unique identifier of the knowledge base to which the data source that was deleted belonged.
  - `dataSourceId` string, required — The unique identifier of the data source that was deleted.
  - `status` 'AVAILABLE' | 'DELETING' | 'DELETE_UNSUCCESSFUL' | 'CREATING' | 'UPDATING' | 'FAILED', required — The status of the data source.

## Other responses

- `480` — ThrottlingException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — InternalServerException
- `484` — ResourceNotFoundException
- `485` — ConflictException

---

[API](https://skmtc.net/aws/apis/bedrock-agent.md) · [All operations](https://skmtc.net/aws/apis/bedrock-agent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock-agent/versions/a3b2356f17da/schema)
