Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to uninstall code-server ? #1989

Answered by bpmct
enniosousa asked this question in Q&A
Discussion options

How to uninstall code-server ?

  • Remote OS: Ubuntu 18.04.2 LTS
  • Remote Architecture:
  • code-server --version: v3.3.1
  • VS Code: v1.45.1
You must be logged in to vote

You can just rm -r the code-server directory. It depends on where you installed it, but if you used the install script by default it'll be in ~/.local/lib/code-server-<version> and there will also be a binary symlink in ~/.local/bin/code-server you can remove.

If you want to delete settings and data as well you can remove ~/.local/share/code-server and ~/.config/code-server.
Source: #1946 (comment)

Replies: 8 comments 7 replies

Comment options

How did you install it?

You must be logged in to vote
0 replies
Comment options

I used the installation script.

curl -fsSL https://code-server.dev/install.sh | sh

How do you uninstall code-server?

You must be logged in to vote
0 replies
Comment options

You can just rm -r the code-server directory. It depends on where you installed it, but if you used the install script by default it'll be in ~/.local/lib/code-server-<version> and there will also be a binary symlink in ~/.local/bin/code-server you can remove.

If you want to delete settings and data as well you can remove ~/.local/share/code-server and ~/.config/code-server.
Source: #1946 (comment)

You must be logged in to vote
0 replies
Answer selected by nhooyr
Comment options

For people using install script, the directory has changed to /usr/lib/code-server.

You must be logged in to vote
0 replies
Comment options

rm -rf /usr/lib/code-server/
rm -rf $HOME/.config/code-server/
rm -rf $HOME/.cache/code-server
rm -f $HOME/.local/share/code-server
rm -f $HOME/.local/bin/code-server
rm -f $HOME/.local/lib/code-server-*
You must be logged in to vote
4 replies
Comment options

rm -rf /usr/lib/code-server/
rm -rf $HOME/.config/code-server/
rm -rf $HOME/.cache/code-server
rm -f $HOME/.local/share/code-server
rm -f $HOME/.local/bin/code-server
rm -f $HOME/.local/lib/code-server-*

This could be better, so that users don't nee to run additional commands over each other.

Comment options

Thanks, fixed.

Comment options

rm -rf $HOME/.local/share/code-server/ instead of rm -f $HOME/.local/share/code-server. It is a directory for user preferences and extensions.

Comment options

I love you.

Comment options

You must be logged in to vote
1 reply
Comment options

Great one! Thanks =)

Comment options

You can just remove( rm -r ) the code-server directory. It depends on where you installed it, but if you used the install script by default it'll be in ~/.local/lib/code-server- and there will also be a binary symlink in ~/.local/bin/code-server you can remove.

If you want to delete settings and data as well you can remove ~/.local/share/code-server and ~/.config/code-server , ~.cache/code-server.

You must be logged in to vote
0 replies
Comment options

[WSL 2]

i just deleted the bin folder using command sudo rm -R /home/mysusername/.vscode-server/bin/ and then I ran code .

As a result VSCode reinstalled along with all my data and installed extensions:

Installing VS Code Server for x64 (2b35e1e6d88f1ce073683991d1eff5284a32690f)
Downloading: 100%
Unpacking: 100%
Unpacked 1522 files and folders to /home/mysusername/.vscode-server/bin/2b35e1e6d88f1ce073683991d1eff5284a32690f.

You must be logged in to vote
2 replies
Comment options

try dpkg -r code-server

Comment options

The solution that I wrote above worked for me. But anyway, thank you @tteck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #1989 on August 20, 2020 22:17.

AltStyle によって変換されたページ (->オリジナル) /