how to drop a database table in postgres code example Example: how to remove tables from postgresql DROP TABLE IF EXISTS tablename;