4 DROP SCHEMA — remove a schema
8 DROP SCHEMA [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
12 DROP SCHEMA removes schemas from the database.
14 A schema can only be dropped by its owner or a superuser. Note that the
15 owner can drop the schema (and thereby all contained objects) even if
16 they do not own some of the objects within the schema.
21 Do not throw an error if the schema does not exist. A notice is
28 Automatically drop objects (tables, functions, etc.) that are
29 contained in the schema, and in turn all objects that depend on
30 those objects (see Section 5.15).
33 Refuse to drop the schema if it contains any objects. This is
38 Using the CASCADE option might make the command remove objects in other
39 schemas besides the one(s) named.
43 To remove schema mystuff from the database, along with everything it
45 DROP SCHEMA mystuff CASCADE;
49 DROP SCHEMA is fully conforming with the SQL standard, except that the
50 standard only allows one schema to be dropped per command, and apart
51 from the IF EXISTS option, which is a PostgreSQL extension.
55 ALTER SCHEMA, CREATE SCHEMA