Database
dropdb
Löscht PostgreSQL-Datenbanken über die CLI
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
Verifiziert: 2026-05-13
Syntax
$dropdb [options] dbname
Optionen
-U
-i
--if-exists
-h
Beispiele
$dropdb mydb
$dropdb -U postgres --if-exists mydb
$dropdb -i old_test_db
Siehe auch
Typische Anwendungsfälle
?
Standardverwendung
dropdb --help
Hinweis
Wrapper um SQL DROP DATABASE; sinnvoll für Cleanup in Testumgebungen.
Export