how to delete database from a server in postgresql code example Example: drop database using terminal postgres sql -U <user> -c "drop database protodb"