SYNOPSIS
DROP SCHEMA name [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION Description
DROP SCHEMA delete mode from the database.
Mode can be deleted only its owner or a superuser. Please note that even if the owner does not own any model object can also delete mode (and all the objects mode).
PARAMETERS Parameters
- name
-
Name of the schema. - CASCADE
-
Comprising automatically deleted objects (tables, functions, etc.) mode. - RESTRICT
-
If the pattern contains no objects, then refused to remove it. This is the default.
EXAMPLES Examples
Delete mode mystuff, and it includes everything from the database:
DROP SCHEMA mystuff CASCADE;