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 TABLE

Focus mode
DROP TABLE - Amazon Athena

Removes the metadata table definition for the table named table_name. When you drop an external table, the underlying data remains intact.

Synopsis

DROP TABLE [IF EXISTS] table_name

Parameters

[ IF EXISTS ]

Causes the error to be suppressed if table_name doesn't exist.

Examples

DROP TABLE fulfilled_orders
DROP TABLE IF EXISTS fulfilled_orders

When using the Athena console query editor to drop a table that has special characters other than the underscore (_), use backticks, as in the following example.

DROP TABLE `my-athena-database-01.my-athena-table`

When using the JDBC connector to drop a table that has special characters, backtick characters are not required.

DROP TABLE my-athena-database-01.my-athena-table

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.