Celeb Glow
news | March 22, 2026

How do I uninstall Visual Studio Code?

I installed Visual Studio Code a while ago, and I'm now trying to remove it. I don't remember how I installed it, but everything I've tried to remove it doesn't work. Things I've tried:

  1. sudo umake web visual-studio-code --remove: This says "can't remove because you don't have it installed," which I know isn't true. I was able to find the files in /home/jacob/.local/share/umake/web/visual-studio-code. Deleting those files, by the way, stops the application from running, but doesn't remove the icon from the launcher. I restored the files once I figured that out.
  2. Removing via Software Center: It does show up in Software Center, but when I hit "remove" nothing happens.

Any other suggestions?

3

9 Answers

I did it with the following command:

sudo apt purge code

to uninstall the program and then:

sudo apt autoremove

to remove the menu items/shortcuts etc as @Joe suggested.

I hope it helps!

3
sudo dpkg --remove visual-studio-code

This will remove the software (including the Dash icon/desktop entry).

I think that this method will leave the configuration information around (if you re-install); there's also a purge option on dpkg that will remove this information as well.

sudo dpkg --purge visual-studio-code
3

As none of the above answer has been accepted so I am assuming it didn't solve your problem. If you cannot find it with apt or dpkg then most likely it was installed with snap as was in my case. To remove it just type:

snap remove code

I had to update VS Code from the Software Center to uninstall it properly. -_-

After that, this worked perfectly:

sudo apt-get purge code
2

I was running into the very same problem today. None of the provided answers solved it for me. So I tried:

$ which visual-studio-code
/home/tim/.local/share/umake/bin/visual-studio-code

I was having a look at that directory and realized it was a symlink to

/home/tim/.local/share/umake/bin/visual-studio-code ->
/home/tim/.local/share/umake/ide/visual-studio-code/bin/code*

So I was able to remove it with

umake ide visual-studio-code --remove

(Note how I use umake ide and not umake web)

2

I find this command from and it work for me.

sudo apt remove code && sudo apt autoremove

If you have installed it with umake, chances are that you didn't use sudo in front of it, so to remove it just type in umake web visual-studio-code --remove. That's it.

For all of them like me, code or visual-studio-code didn't work try using, vscode.

sudo apt-get purge --auto-remove code

This should remove the files (of visual-studio-code), its configuration files and the dependencies.

2