how to delete database on postgres terminal code example Example: drop database using terminal postgres sql -U <user> -c "drop database protodb"