Deleting project from sonarqube


(vicky) #1


Is it possible to delete only specific project from sonarqube database after certain time because currently as per this documentation (
it only allows configuration for overall projects but my requirement is that my project (“xyz”) should be deleted after 2hr and all other project sohuld remain intact.
Thanks in advance!

(Nicolas Bontoux) #2


You cannot set a ‘timer for deletion’ in SonarQube. For any such custom operation though, keep in mind that the WebAPI (documentation embedded in your server) lets you interact with SonarQube programmatically. So you could imagine writing a script leveraging api/projects/delete to fulfil your custom need.