DROP EXTERNAL TABLE

statementsupportedIceberg & external tables

docs.snowflake.com ↗

Object: EXTERNAL TABLE

Removes an external table from the current or specified schema. This is a metadata-only operation. None of the files that the external table refers to are dropped.

Syntax

supportedpartialnot supportednot scored

DROP EXTERNAL TABLE [ IF EXISTS ] <name> [ CASCADE | RESTRICT ]

Parameters

NameRequiredDescription
nameSpecifies the identifier for the external table to drop. If the identifier contains spaces, special characters, or mixed-case characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case sensitive; for example, "My Object". If the external table identifier is not fully qualified, in the form of db_name.schema_name.table_name or schema_name.table_name, the command looks for the external table in the current schema for the session.
CASCADE | RESTRICTSpecifies whether the external table can be dropped if foreign keys exist that reference the table: CASCADE drops the external table even if it has primary or unique keys that are referenced by foreign keys in other tables. RESTRICT returns a warning about existing foreign key references and doesn’t drop the external table. Default: CASCADE

Usage notes

See also

Referenced by