You can set a branch to Keep when inactive at the project level from the Branches tab at Project Settings > Branches and Pull Requests. Here, you can also turn off protection for a branch so it will be deleted when it’s inactive for the number of days that have been specified in the global settings at Administration > General Settings > Housekeeping > Number of days before deleting inactive branches.
this functionality is not working for our projects in Sonarqube 9.9, there are so many branches more than 6 months and they are not protected, but still those branches are not getting deleted automatically.
Thanks. Can you share a screenshot showing as much (branches that have both been analyzed recently and very old unprotected branches that have not been cleaned up).
For this project, I don’t see anything wrong yet. The oldest analysis is 1 month old and the last analysis 5 days ago. It’s possible that the analysis only reached 1 month old in the last 5 days. Any other examples?
Have you also confirmed the setting here has the expected value (default 30)?