---
title: "Drop Database"
method: DELETE
path: "/postgres/{postgres_cluster_id}/databases/{database_name}"
tags: ["Postgres Clusters"]
---

# Drop Database

`DELETE /postgres/{postgres_cluster_id}/databases/{database_name}`

Delete a specific database within a cluster, along with objects that depend on it.

## Path parameters

- `postgres_cluster_id` string, required
- `database_name` string, required

## Response `200`

OK

- PostgresDatabaseResponse
  - `data` PostgresDatabase
    - `name` string — Database name.

## Other responses

- `400` — Database name is reserved, a system database, or malformed
- `404` — 'Cluster not found' for the cluster; 'Database not found' for the database

---

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