|
15 | 15 | - [Raspberry Pi](#raspberry-pi)
|
16 | 16 | - [Termux](#termux)
|
17 | 17 | - [Cloud providers](#cloud-providers)
|
| 18 | +- [Uninstall](#uninstall) |
| 19 | + - [install.sh](#installsh-1) |
| 20 | + - [Homebrew](#homebrew) |
| 21 | + - [yarn, npm](#yarn-npm-1) |
| 22 | + - [Debian, Ubuntu](#debian-ubuntu-1) |
18 | 23 |
|
19 | 24 | <!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
20 | 25 |
|
@@ -246,3 +251,54 @@ information.
|
246 | 251 | We maintain [one-click apps and install scripts for cloud
|
247 | 252 | providers](https://github.com/cdr/deploy-code-server) such as DigitalOcean,
|
248 | 253 | Railway, Heroku, and Azure.
|
| 254 | + |
| 255 | +## Uninstall |
| 256 | + |
| 257 | +code-server can be completely uninstalled by removing the application directory, and your user configuration directory. |
| 258 | + |
| 259 | +To delete settings and data: |
| 260 | + |
| 261 | +```shell |
| 262 | +rm -rf ~/.local/share/code-server ~/.config/code-server |
| 263 | +``` |
| 264 | + |
| 265 | +### install.sh |
| 266 | + |
| 267 | +If you installed with the install script, by default code-server will be in `~/.local/lib/code-server-<version>` and you can remove it with `rm -rf`. e.g. |
| 268 | + |
| 269 | +```shell |
| 270 | +rm -rf ~/.local/lib/code-server-* |
| 271 | +``` |
| 272 | + |
| 273 | +### Homebrew |
| 274 | + |
| 275 | +To remove the code-server homebrew package, run: |
| 276 | + |
| 277 | +```shell |
| 278 | +brew remove code-server |
| 279 | + |
| 280 | +# Alternatively |
| 281 | +brew uninstall code-server |
| 282 | +``` |
| 283 | + |
| 284 | +### yarn, npm |
| 285 | + |
| 286 | +To remove the code-server global module, run: |
| 287 | + |
| 288 | +```shell |
| 289 | +yarn global remove code-server |
| 290 | +``` |
| 291 | + |
| 292 | +or |
| 293 | + |
| 294 | +```shell |
| 295 | +npm uninstall -g code-server |
| 296 | +``` |
| 297 | + |
| 298 | +### Debian, Ubuntu |
| 299 | + |
| 300 | +To uninstall, run: |
| 301 | + |
| 302 | +```shell |
| 303 | +sudo apt remove code-server |
| 304 | +``` |
0 commit comments