---
title: "(BETA) Remove a data source from an AILake Database instance"
method: DELETE
path: "/api/v1/ailake/database/instances/{instanceId}/dataSources/{dataSourceId}"
tags: ["AI Lake - Databases"]
---

# (BETA) Remove a data source from an AILake Database instance

`DELETE /api/v1/ailake/database/instances/{instanceId}/dataSources/{dataSourceId}`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/ailake/database/instances/{instanceId}/dataSources/{dataSourceId}`
- Auth: none declared

(BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.

## Path parameters

- `instanceId` string, required: Database instance identifier. Accepts the database name (preferred) or UUID.
- `dataSourceId` string, required: Identifier of the data source to remove.

## Response `200`

Data source successfully removed

- RemoveDatabaseDataSourceResponse: Confirmation of data source removal from an AI Lake Database instance
  - `dataSourceId` string, required: Identifier of the removed data source in metadata-api.

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
