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: 

Delete unassigned catalogs

matthiasn
New Contributor III

Hi everybody,

due to some not-so-optimal Infrastructure as code experiments with terraform I ended up a lot (triple digit) of catalogs in a metastore that are not assigned to any workspace and that i want to delete.

Unfortunately, there is no way to even list those catalogs using the API. You only can list catalogs that are assigned to workspace. If I could create a list of the catalogs I could assign those to a workspace and delete those catalogs.

Am i missing something on "list all catalog, regardless if assigned to a workspace or not"?

(i am metastore admin and account admin, so no problem regarding access)

2 REPLIES 2

Advika
Databricks Employee
Databricks Employee

Hello @matthiasn!

Orphaned catalogs usually appear grayed out in the Catalog Explorer UI, so you can check there.

Also, this article might help: https://kb.databricks.com/unity-catalog/grayed-out-catalogs-appearing-in-a-deleted-unity-catalog-reg...

matthiasn
New Contributor III

Yeah, I see those catalogs and i know that I could reattach and delete them. As i have around 100 those catalogs it would be nice to iterate through them by getting a list, e.g. using the cli or the rest API. And then force delete them , as described in the kb article. i really want to avoid typing all those names 🙂 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now