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