drop a database in postgresql and create code example Example: postgres delete database CREATE DATABASE testdb1; DROP DATABASE testdb1;