force delete table postgresql code example
Example 1: force drop all tables postgres
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
Example 2: psql delete table
DROP TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
DROP TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]