Skip to content

Commit 162f70a

Browse files
committed
docs(install): add uninstall instructions
1 parent 5b5a1f4 commit 162f70a

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

docs/install.md

+56
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
- [Raspberry Pi](#raspberry-pi)
1616
- [Termux](#termux)
1717
- [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)
1823

1924
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2025

@@ -246,3 +251,54 @@ information.
246251
We maintain [one-click apps and install scripts for cloud
247252
providers](https://github.com/cdr/deploy-code-server) such as DigitalOcean,
248253
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

Comments
 (0)