CmdID

CmdID / Commands

dropdb

Remove a PostgreSQL database. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Remove a PostgreSQL database. A simple wrapper around the SQL command DROP DATABASE.

Destroy a database

dropdb database_nameIdentify

Request a verification prompt before any destructive actions

dropdb --interactive database_nameIdentify

Connect with a specific username and destroy a database

dropdb --username username database_nameIdentify

Force a password prompt before connecting to the database

dropdb --password database_nameIdentify

Suppress a password prompt before connecting to the database

dropdb --no-password database_nameIdentify

Specify the server host name

dropdb --host host database_nameIdentify

Specify the server port

dropdb --port port database_nameIdentify

Attempt to terminate existing connections before destroying the database

dropdb --force database_nameIdentify