How to completely purge Visual Studio Code on Ubuntu?

Viewed 23077

I'm using VS Code on Ubuntu 16.04 LTS and I want to completely uninstall it.

So I've tried these commands:

sudo apt-get remove code
sudo apt-get purge code
sudo apt-get update

And every time when I re-install I see my project that was open from my last use and I still have all my plugins, my themes, keybindings, etc.

What must I do to completely uninstall all settings of Visual Studio Code ?

5 Answers

User specific settings/extensions are located in $HOME/.config/Code and $HOME/.vscode/ so remove those folders manually

cd [enter]

sudo rm -rf .vscode
sudo rm -rf  ~/.config/Code

sudo apt purge code

sudo apt autoremove

You could try deleting ~/.config/Code

These commands seek to work just fine.

  1. sudo dpkg --purge code
  2. sudo dpkg --remove code
  3. then uninstall through gdebi
Related