dropdb
Removes PostgreSQL databases via CLI
Syntax
$dropdb [options] dbname
Optionen
-U
-i
--if-exists
-h
Examples
Examples
$dropdb mydb
Examples
$dropdb -U postgres --if-exists mydb
Examples
$dropdb -i old_test_db
See also
Warnings
Deletes the database permanently
Typical use cases
Note
Wrapper around SQL DROP DATABASE; useful for test environment cleanup.
Export