how to delete a db psql code example Example 1: postgres delete database DROP DATABASE db_name; Example 2: delete db postgres dropdb 'database name'