delete database postgres ubuntu code example
Example 1: postgres remove database
DROP DATABASE IF EXISTS database_name;
Example 2: drop database using terminal postgres
sql -U <user> -c "drop database protodb"
DROP DATABASE IF EXISTS database_name;
sql -U <user> -c "drop database protodb"