psql force delete database code example
Example 1: postgres delete database
CREATE DATABASE testdb1;
DROP DATABASE testdb1;
Example 2: postgres delete database
DROP DATABASE db_name;
CREATE DATABASE testdb1;
DROP DATABASE testdb1;
DROP DATABASE db_name;