You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
On Slack, a user mentioned that they were having trouble cleaning up an unused catalog. They had deleted tables and namespaces, but forgot to delete catalog roles. They got into this state because they change their underlying object store (GCS) and they wanted to just start with a fresh new catalog.
Describe the solution you'd like
An extension to the Polaris Management REST API to allow for a catalog and all its related content to be deleted in the background.
As @snazy noted:
This must also be resumable because the metastore DB might stall or fail.
The catalog must not be usable for others while it is being purged. This requires a catalog-state-management and a corresponding catalog-state-machine.
Describe alternatives you've considered
Delete all the catalog entities one-by-one
Additional context
Eric Maynard mentioned that there was some vestigial code related to CASCADE (e.g. CLEANUP_ON_CATALOG_DROP).
The maintenance service project / asynchronous task execution is related to this.
As @flyrain noted, we will also need to consider polices that attached to entities in different catalogs.
Thanks a lot for filing this one. Some thoughts:
Cascading deletion doesn’t necessarily need to be asynchronous. Async execution is only required when tables are dropped with purge, since that may involve time-consuming storage cleanup.
We will also need to consider polices that attached to entities in different catalogs. cc @HonahX
Thanks @adam-christian-software, this is a request for a missing functionality in Polaris, so the request for this is totally legit and valid!
Catalogs can have a huge amount of namespaces, catalog-roles and tables and views.
Just considering that quite an amount of backend database operations is necessary for this use case, and that database operations may stall or block (e.g. tx sync) or fail (e.g. tx deadlock), a whole catalog-purge operation has to be asynchronous and also resumable.
On top, as a drop-catalog-purge can easily take a long time, the catalog must not be usable for others while it is being purged. This requires a catalog-state-management and a corresponding catalog-state-machine.
Cross-catalog references are risky, and this use case is one example why. Circular cross-catalog references would be a blocker.
Activity
flyrain commentedon Nov 7, 2025
Thanks a lot for filing this one. Some thoughts:
Cascading deletion doesn’t necessarily need to be asynchronous. Async execution is only required when tables are dropped with purge, since that may involve time-consuming storage cleanup.
We will also need to consider polices that attached to entities in different catalogs. cc @HonahX
snazy commentedon Nov 10, 2025
Thanks @adam-christian-software, this is a request for a missing functionality in Polaris, so the request for this is totally legit and valid!
Catalogs can have a huge amount of namespaces, catalog-roles and tables and views.
Just considering that quite an amount of backend database operations is necessary for this use case, and that database operations may stall or block (e.g. tx sync) or fail (e.g. tx deadlock), a whole catalog-purge operation has to be asynchronous and also resumable.
On top, as a drop-catalog-purge can easily take a long time, the catalog must not be usable for others while it is being purged. This requires a catalog-state-management and a corresponding catalog-state-machine.
Cross-catalog references are risky, and this use case is one example why. Circular cross-catalog references would be a blocker.
github-actions commentedon Feb 15, 2026
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment if you think it's still relevant.