how to delete a postgres database from local system code example Example: postgres delete database CREATE DATABASE testdb1; DROP DATABASE testdb1;