cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restore if a catalog is deleted

bhanu_dp
New Contributor II

I am looking to identify potential pitfall in the decentralized workspace framework where the key business owner have full access to their respective workspace and catalogs. In case of accidental delete/drop schema or catalog from the UC, what are the ways to restore a catalog?

1 REPLY 1

KaranamS
Contributor II

Hi @bhanu_dp , 

To retrieve accidental deletes, you can -

1. Restore it to a previous version using time travel feature

https://docs.databricks.com/gcp/en/delta/history#restore-a-delta-table-to-an-earlier-state

KaranamS_0-1742240889884.png

2. Use UNDROP command

https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-undrop-table

Just to note, to restore a catalog, you will need to restore all tables under it.

Hope this helps!

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group