dropdb
Remove a PostgreSQL database. tldr-pages
On several platforms
Several platforms
Remove a PostgreSQL database. A simple wrapper around the SQL command DROP DATABASE.
Destroy a database
dropdb database_nameIdentifyRequest a verification prompt before any destructive actions
dropdb --interactive database_nameIdentifyConnect with a specific username and destroy a database
dropdb --username username database_nameIdentifyForce a password prompt before connecting to the database
dropdb --password database_nameIdentifySuppress a password prompt before connecting to the database
dropdb --no-password database_nameIdentifySpecify the server host name
dropdb --host host database_nameIdentifySpecify the server port
dropdb --port port database_nameIdentifyAttempt to terminate existing connections before destroying the database
dropdb --force database_nameIdentify