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