Skip to main content
Removes an existing schema.
DROP SCHEMA Syntax

Parameters

IF EXISTS

Optional error-suppression clause; if specified, no error will be returned if the given schema does not exist

<schema name>

Name of the schema to remove

CASCADE

Drops all objects contained within the schema; if not specified, an error will be returned if the given schema contains any tables, views, etc.

Examples

To drop a schema, including all contained objects:
DROP SCHEMA Example