Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

DROP EXTERNAL VIEW - Amazon Redshift

DROP EXTERNAL VIEW

Drops an external view from the database. Dropping an external view removes it from all SQL engines the view is associated with, such as Amazon Athena and Amazon EMR Spark. This command can't be reversed. For more information about Data Catalog views, see AWS Glue Data Catalog views.

Syntax

DROP EXTERNAL VIEW schema_name.view_name [ IF EXISTS ] {catalog_name.schema_name.view_name | awsdatacatalog.dbname.view_name | external_schema_name.view_name}

Parameters

schema_name.view_name

The schema that’s attached to your AWS Glue database, followed by the name of the view.

IF EXISTS

Drops the view only if it exists.

catalog_name.schema_name.view_name | awsdatacatalog.dbname.view_name | external_schema_name.view_name

The notation of the schema to use when dropping the view. You can specify to use the AWS Glue Data Catalog, a Glue database that you created, or an external schema that you created. See CREATE DATABASE and CREATE EXTERNAL SCHEMA for more information.

query_definition

The definition of the SQL query that Amazon Redshift runs to alter the view.

Examples

The following example drops a Data Catalog view named sample_schema.glue_data_catalog_view.

DROP EXTERNAL VIEW sample_schema.glue_data_catalog_view IF EXISTS
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.