Delete a project from SonarQube

2020-05-24 18:49发布

Does anyone know how to delete a project from a SonarQube server?

Thanks, Ronen.

标签: sonarqube
14条回答
虎瘦雄心在
2楼-- · 2020-05-24 19:33

Here is SonarQube version 4.4,

Seems each version the GUI is changed....

in project viewer --> configuration --> delete

查看更多
甜甜的少女心
3楼-- · 2020-05-24 19:33

Here is the steps I use to DELETE any project from My SonarQube.

  1. Login as administrator
  2. Go to Administration -> Projects -> Projects Management
  3. Select the Project(s) you want to DELETE
  4. Click on Delete button at top right corner.

Fig - Deleteing a Project From SonarQube

查看更多
来,给爷笑一个
4楼-- · 2020-05-24 19:35

[Home] button in top left corner >> [Projects] tab in top left corner >> (under name, click on the name of your project) >> [Project Deletion] (on the left panel/dashboard at the bottom) >> [Delete project] (in the center of the page, kind of).

查看更多
叛逆
5楼-- · 2020-05-24 19:36

In some situations that you want to make it programatically you can use the SonarQube's Rest Web API to do so. According to SonarQube documentation:

POST api/projects/bulk_delete

Which can be used by passing the project's ID in the "keys" parameter. I'm no pro in Curl but it should be something like this (code generated in the Postman client) for project with key "daBestProjectKey":

curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" -H "Postman-Token: 10a0e9a1-8dae-a9d1-45f2-0d8e56de999d" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "keys=daBestProjectKey" "http://localhost:9000/api/projects/bulk_delete"
查看更多
【Aperson】
6楼-- · 2020-05-24 19:40

Updated for Sonar 2.11:

  • Select the project (from the home page)
  • Then click on the Project Deletion link on the bottom of the left panel
  • Finally, confirm using the Delete Project button
查看更多
SAY GOODBYE
7楼-- · 2020-05-24 19:40

Login with an administrator account, then browse to the settings page of your project to get the button "delete project".

Here is the steps I use to DELETE any project from My SonarQube.

Login as administrator. Go to Administration -> Projects -> Projects Management. Select the Project(s) you want to DELETE. Click on Delete button at top right corner.

or with the command line: POST api/projects/bulk_delete.

查看更多
登录 后发表回答