psql command line delete database code example
Example 1: postgres delete database
CREATE DATABASE testdb1;
DROP DATABASE testdb1;
Example 2: drop database using terminal postgres
sql -U <user> -c "drop database protodb"
CREATE DATABASE testdb1;
DROP DATABASE testdb1;
sql -U <user> -c "drop database protodb"