delete postgres database command line code example
Example 1: remove postgresql ubuntu
sudo apt-get --purge remove postgresql
sudo apt-get purge postgresql*
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common
Example 2: postgres delete database
CREATE DATABASE testdb1;
DROP DATABASE testdb1;
Example 3: postgres remove database
DROP DATABASE IF EXISTS database_name;
Example 4: drop database using terminal postgres
sql -U <user> -c "drop database protodb"