Fly.io
Postgres Clusters

Drop Database

View as Markdown

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

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

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

Authorization

bearerAuth
AuthorizationBearer <token>

A Fly.io access token. Create one with fly tokens create.

In: header

Path Parameters

postgres_cluster_id*string

Managed Postgres Cluster ID

database_name*string

Database Name

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/postgres/string/databases/string"
{  "data": {    "name": "string"  }}
{  "error": "string"}
{  "error": "string"}