Delete database
Jump to navigation
Jump to search
PostgreSQL
DROP DATABASE [IF EXISTS] my_database_name;
Do not forget the ;
at the end of the line
DROP DATABASE [IF EXISTS] my_database_name (FORCE) ;
DROP DATABASE database_name; Output: DROP DATABASE
DROP DATABASE database_name (FORCE);
Related terms:
Related
ALTER DATABASE ERROR: must be owner of database
GRANT "your-defined role" TO "your username";
See also
Advertising: