dropdb
Database ManagementRemove a PostgreSQL database
Options & Flags
Available options for this command
-iPrompt before deleting
--if-existsDon't error if database doesn't exist
Examples
Common usage examples
Drop database named myapp
dropdb myappDrop with confirmation prompt
dropdb -i myappDrop only if exists
dropdb --if-exists myappNotes
- Cannot drop a database you are connected to
- This action is irreversible