I want to clear Sonarqube project current code analysis and make the project blank. Is it possible? I know we can clear all the previous analysis, but I want to clear the current analysis of Sonarqube project.
1 Answer
If you mean removing a "snapshot" of an analysis according to the most recent SonarQube documentation you should be able to this. Also if you have access to the database SonarQube is using then you could remove the analysis directly from there. That option may introduce other issues though depending on how SonarQube handles it.
-
I have gone through the latest document link which you attached in a comment. But there also they mentioned
Note that the most recent snapshot (labeled " last snapshot") can never be deleted
, but as per my requirenment I want to make my project blank so How can I do that? Commented Oct 21, 2019 at 4:26 -
It's not supported, but if you have access to the database you can remove the project data from there. Beware though, this is unsupported and may break SonarQube depending on how you remove the data. Commented Oct 21, 2019 at 13:31
-
I have one more issue. Sonarqube is showing old bugs in new bugs. why? Commented Oct 24, 2019 at 13:06
-
Do you have any link from where I can find steps to delete Sonarqube analysis? Commented Nov 8, 2019 at 10:46