SHOW CATALOGS DROPPED
Applies to: Databricks SQL
Databricks Runtime 19 and above
Unity Catalog only
Lists the dropped catalogs in the metastore that are within their recovery period. To recover one, use UNDROP CATALOG. The default recovery period is 7 days. See Configure the recovery period.
Use the catalog_id from the output to recover a specific catalog when several dropped catalogs share a name.
Syntax
SHOW CATALOGS DROPPED [ LIMIT max_results ]
Parameters
-
max_resultsAn integer literal that limits the number of catalogs returned.
Permissions
To run SHOW CATALOGS DROPPED, you must have the READ_METADATA privilege on the metastore. Metastore admins have this privilege.
Without READ_METADATA on the metastore, you can't list a dropped catalog, even if you own it. You can still recover it by name or ID if you meet the UNDROP CATALOG permission requirements.
Returns
The command returns a list of dropped catalogs with the following columns:
Name | Data type | Description |
|---|---|---|
catalog_id | STRING | The ID that identifies a specific dropped catalog for undrop. |
catalog_name | STRING | The name of the dropped catalog. |
deleted_at | STRING | The time when the catalog was dropped. |
created_at | STRING | The time when the catalog was created. |
updated_at | STRING | The time when the catalog was last updated. |
created_by | STRING | The principal who created the catalog. |
owner | STRING | The principal who owns the catalog. |
Examples
To list all dropped catalogs that are within their recovery period, run the following:
> CREATE CATALOG sales;
> DROP CATALOG sales CASCADE;
> SHOW CATALOGS DROPPED;
catalog_id catalog_name deleted_at created_at updated_at created_by owner
------------------------------------ ------------ ----------------------------- ----------------------------- ----------------------------- ------------- -------------
6ca7be55-8f58-47a7-85ee-7a59082fd17a sales 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 limit the number of catalogs returned, run the following:
> SHOW CATALOGS DROPPED LIMIT 10;