SHOW SCHEMAS DROPPED

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 19 and above check marked yes Unity Catalog only

Lists the dropped schemas in a catalog that are within their recovery period. To recover one, use UNDROP SCHEMA. The default recovery period is 7 days. See Configure the recovery period.

Use the schema_id from the output to recover a specific schema when several dropped schemas share a name.

Syntax

SHOW SCHEMAS DROPPED [ { FROM | IN } catalog_name ] [ LIMIT max_results ]

Parameters

  • catalog_name

    The catalog to list dropped schemas from. If you don't specify a catalog, the command uses the current catalog. You can also specify the catalog with the IDENTIFIER clause.

    If the catalog doesn't exist or was dropped, the command fails. To list schemas in a dropped catalog, recover it first with UNDROP CATALOG. The command doesn't support hive_metastore or spark_catalog.

  • max_results

    An integer literal that limits the number of schemas returned.

Permissions

To run SHOW SCHEMAS DROPPED, you must meet one of the following requirements:

  • Have the READ_METADATA privilege on the metastore. Metastore admins have this privilege.
  • Be the owner of the catalog or have the MANAGE privilege on it.

If you don't meet these requirements, you can't list a dropped schema, even if you own it. You can still recover it by name or ID if you meet the UNDROP SCHEMA permission requirements.

Returns

The command returns a list of dropped schemas with the following columns:

Name Data type Description
schema_id STRING The ID that identifies a specific dropped schema for undrop.
schema_name STRING The name of the dropped schema.
catalog_name STRING The name of the catalog that contains the schema.
deleted_at STRING The time when the schema was dropped.
created_at STRING The time when the schema was created.
updated_at STRING The time when the schema was last updated.
created_by STRING The principal who created the schema.
owner STRING The principal who owns the schema.

Examples

To list dropped schemas in a specific catalog, run the following:

> CREATE SCHEMA my_catalog.my_schema;
> DROP SCHEMA my_catalog.my_schema CASCADE;
> SHOW SCHEMAS DROPPED IN my_catalog;
  schema_id                            schema_name catalog_name deleted_at                    created_at                    updated_at                    created_by    owner
  ------------------------------------ ----------- ------------ ----------------------------- ----------------------------- ----------------------------- ------------- -------------
  6ca7be55-8f58-47a7-85ee-7a59082fd17a my_schema   my_catalog   2026-10-20 AD at 18:17:56 UTC 2026-10-01 AD at 09:00:00 UTC 2026-10-01 AD at 09:00:00 UTC alf@melmak.et alf@melmak.et

To list dropped schemas in the current catalog, run the following:

> USE CATALOG my_catalog;
> SHOW SCHEMAS DROPPED;

To specify the catalog with the IDENTIFIER clause and limit the number of schemas returned, run the following:

> SHOW SCHEMAS DROPPED IN IDENTIFIER('my_catalog') LIMIT 10;