---
title: "(BETA) Delete an existing AILake Database instance"
method: DELETE
path: "/api/v1/ailake/database/instances/{instanceId}"
tags: ["AI Lake - Databases"]
---

# (BETA) Delete an existing AILake Database instance

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

## Request

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

(BETA) Deletes an existing database in the organization's AI Lake. A database that still contains tables is not deleted, unless cascade is set. With cascade, every table in the database is dropped first, which cannot be undone. Returns an operation-id in the operation-id header the client can use to poll for the progress.

## Path parameters

- `instanceId` string, required: Database instance identifier. Accepts the database name (preferred) or UUID.

## Query parameters

- `cascade` boolean: Drop every table in the database before the database itself.

## Headers

- `operation-id` string

## Response `202`

Accepted

---

[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)
