how to drop a database in psql code example
Example 1: postgres delete database
CREATE DATABASE testdb1;
DROP DATABASE testdb1;
Example 2: how to drop database name in postgresql
dropdb 'database name'
Example 3: drop database using terminal postgres
sql -U -c "drop database protodb"