Delete a database permanently.

Section: Database and Role Lifecycle

Drop database

sql
sql
DROP DATABASE appdb;
Explanation

See summary for usage details.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Database and Role Lifecycle
Create database
Create a new database in the cluster.
OpenIn sheetsqlsame section
Create database with owner
Create a database with explicit owner and template.
OpenIn sheetsqlsame section
Rename database
Rename an existing database.
OpenIn sheetsqlsame section
Drop role
Remove a role from the cluster.
OpenIn sheetsqlsame section
Create login role
Create a role that can log in.
OpenIn sheetsqlsame section
Create role with privileges
Create a role with explicit capability flags.
OpenIn sheetsqlsame section