Should uninstall scripts clean up ignored diagnosis warnings for removed apps?

Discuss

When running yunohost diagnosis ignore --list, I get a list of ignored warnings. Some of these (especially in the services category) originate from software I uninstalled a long time ago and don’t even remember. I can imagine a scenario where, after reinstalling an app, I won’t be notified about relevant warnings because of these long-forgotten filters.

Shouldn’t the uninstall script check if any ignored warning filters are associated with the app being removed and clean them up accordingly?

Unless the remove script has the remove line for that service.

What service is still there after removing the app?

This time it was Cockpit. There was another one for sure but I can’t recall its name unfortunately.