curl --request DELETE \
--url https://api.sequinstream.com/api/postgres_databases/example-db \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"success": true,
"id": "db_01HRMW3ZNE5EFGW9SDXW01TT92"
}
{
"error": "Cannot delete database that's used by sink consumers. Please delete associated sink consumers first."
}
{
"errors": {
"detail": "Postgres Database not found"
}
}
Postgres databases
Delete database
Delete a Postgres database connection and its associated replication slot.
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"
}
{
"error": "Cannot delete database that's used by sink consumers. Please delete associated sink consumers first."
}
{
"errors": {
"detail": "Postgres Database not found"
}
}
Path Parameters
string
required
The database ID or name to delete
Response
boolean
Whether the deletion was successful
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"
}
{
"error": "Cannot delete database that's used by sink consumers. Please delete associated sink consumers first."
}
{
"errors": {
"detail": "Postgres Database not found"
}
}

