DELETE
/
api
/
postgres_databases
/
{id_or_name}
curl --request DELETE \
  --url https://api.sequinstream.com/api/postgres_databases/example-db \
  --header 'Authorization: Bearer YOUR_API_KEY'
{
  "success": true,
  "id": "db_01HRMW3ZNE5EFGW9SDXW01TT92"
}

Path Parameters

id_or_name
string
required

The database ID or name to delete

Response

success
boolean

Whether the deletion was successful

id
string

The ID of the deleted database

Notes

  • This action cannot be undone.
  • The database connection and its associated replication slot will be deleted.
  • If the database has any associated sink consumers, the deletion will fail with a validation error.
  • If the database has any associated WAL pipelines, the deletion will fail with a validation error.
curl --request DELETE \
  --url https://api.sequinstream.com/api/postgres_databases/example-db \
  --header 'Authorization: Bearer YOUR_API_KEY'
{
  "success": true,
  "id": "db_01HRMW3ZNE5EFGW9SDXW01TT92"
}