Skip to content

Commit 580bb5e

Browse files
Document how to uninstall the CLI
1 parent e93745e commit 580bb5e

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,19 @@ Update sonar CLI to the latest version
411411

412412
See [State Management](./docs/state-management.md) for more information.
413413

414+
## Uninstalling
415+
416+
### Linux/Mac OS
417+
418+
1. Delete the `~/.local/share/sonarqube-cli/` folder.
419+
2. Remove `export PATH="$HOME/.local/share/sonarqube-cli/bin:$PATH` from your `~/.bashrc` or `~/.zshrc` files.
420+
421+
### Windows
422+
423+
1. Delete the `%localappdata%\sonarqube-cli\` folder.
424+
2. Remove this folder from the `PATH` user-level environment variable.
425+
426+
414427
## Data collection
415428

416429
The SonarQube CLI collects anonymous usage data and error reports to help improve the product.

build-scripts/README.template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ sonar integrate claude -g
5454

5555
See [State Management](./docs/state-management.md) for more information.
5656

57+
## Uninstalling
58+
59+
### Linux/Mac OS
60+
61+
1. Delete the `~/.local/share/sonarqube-cli/` folder.
62+
2. Remove `export PATH="$HOME/.local/share/sonarqube-cli/bin:$PATH` from your `~/.bashrc` or `~/.zshrc` files.
63+
64+
### Windows
65+
66+
1. Delete the `%localappdata%\sonarqube-cli\` folder.
67+
2. Remove this folder from the `PATH` user-level environment variable.
68+
69+
5770
## Data collection
5871

5972
The SonarQube CLI collects anonymous usage data and error reports to help improve the product.

0 commit comments

Comments
 (0)