Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 500 Bytes

drop-schema.rst

File metadata and controls

34 lines (21 loc) · 500 Bytes

DROP SCHEMA

Synopsis

DROP SCHEMA [ IF EXISTS ] schema_name

Description

Drop an existing schema. The schema must be empty.

The optional IF EXISTS clause causes the error to be suppressed if the schema does not exist.

Examples

Drop the schema web:

DROP SCHEMA web

Drop the schema sales if it exists:

DROP SCHEMA IF EXISTS sales

See Also

:doc:`alter-schema`, :doc:`create-schema`