How to delete sonarqube branches in database

时间:2015-12-10 01:22:28

标签: sonarqube

I have a sonar dashboard which has projects on branch level. Most of the Sonar branches(projects) are not used now.

I have written a script to clean-up the branches in sonar which works fine but the branch details in sonar database were never removed.

Please let me know the best way to remove the deleted projects in sonar database as there branches are of a lot older releases and will never be analysed again

1 个答案:

答案 0 :(得分:0)

您永远不应该直接更改数据库。请注意,批量删除功能在您的案例中非常有用:http://docs.sonarqube.org/display/SONAR/Project+Existence#ProjectExistence-Deletion