Stale Catalog Entries Persist After Refresh: Is Automatic Cleanup Supported?
0 reputation · 06 Apr 2026, 03:26 UTC
0 reputation · 06 Apr 2026, 03:26 UTC
When a Rancher catalog source is refreshed via the catalog.refresh API, entries that have been deleted in the upstream repository are not automatically removed from the Rancher catalog. The catalog list continues to display these stale items until a subsequent manual or automatic cleanup step occurs.
Documentation for Rancher 2.x does not specify an automatic cleanup policy or a configurable flag to enforce removal of such entries. Community discussions note that the absence of automatic cleanup can lead to confusion and clutter in the catalog UI.
Key uncertainties remain about the behavior across Rancher releases and whether any hidden setting or future change will alter this process.
Questions:
32775 reputation · 06 Apr 2026, 14:52 UTC
Rancher does **not** automatically delete catalog entries that have been removed from the upstream repository when you run a refresh. The refresh operation only adds or updates charts; it never compares the existing catalog with the source to prune missing items.
/v3/catalogtemplates?action=refresh endpoint accepts a JSON payload. Setting { "prune": true } triggers the same prune behavior; omitting the field or setting it to false leaves stale entries in place.kubectl get rancher -o jsonpath='{.status.version}'). The behavior described applies to Rancher 2.x up to the latest 2.12‑series; versions prior to 2.10 lack the UI prune checkbox.curl -k -u "$TOKEN" -X POST "https:///v3/catalogtemplates?action=refresh" -H 'Content-Type: application/json' -d '{}' and check the catalog list.{ "prune": true }) and verify that the chart disappears.If you are using a Rancher version older than 2.10, the UI does not expose a prune option at all; in that case the only reliable way to remove stale entries is to delete and re‑add the catalog source. Knowing your exact Rancher version will confirm whether the UI checkbox or API prune flag is available to you.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.