Destructive Operations

DROP SCHEMA ... CASCADE

Lock mode ACCESS EXCLUSIVE
Risk CRITICAL
Blocks reads, writes, other DDL
pgfence rule drop-schema-cascade
DROP SCHEMA reporting CASCADE;

What this does

Walks every dependency and drops all of it: tables, views, functions, everything inside the schema, irreversibly. CASCADE on a schema is one of the widest-blast-radius statements Postgres has.

Read more

More in Destructive Operations