-
Notifications
You must be signed in to change notification settings - Fork 6.3k
How to uninstall code-server ? #1989
-
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
Beta Was this translation helpful? Give feedback.
All reactions
You can just
rm -rthecode-serverdirectory. 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-serveryou can remove.If you want to delete settings and data as well you can remove
~/.local/share/code-serverand~/.config/code-server.
Source: #1946 (comment)
Replies: 8 comments 7 replies
-
How did you install it?
Beta Was this translation helpful? Give feedback.
All reactions
-
I used the installation script.
curl -fsSL https://code-server.dev/install.sh | sh
How do you uninstall code-server?
Beta Was this translation helpful? Give feedback.
All reactions
-
You can just
rm -rthecode-serverdirectory. 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-serveryou can remove.If you want to delete settings and data as well you can remove
~/.local/share/code-serverand~/.config/code-server.
Source: #1946 (comment)
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 13 -
❤️ 12 -
🚀 3
-
For people using install script, the directory has changed to /usr/lib/code-server.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 18
-
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-*
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 3
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 4
-
Thanks, fixed.
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 5
-
I love you.
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
😄 2 -
🎉 1
-
Great one! Thanks =)
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
[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.
Beta Was this translation helpful? Give feedback.
All reactions
-
try dpkg -r code-server
Beta Was this translation helpful? Give feedback.
All reactions
-
The solution that I wrote above worked for me. But anyway, thank you @tteck
Beta Was this translation helpful? Give feedback.