user3315504
user3315504

Reputation: 1275

How to completely uninstall VS Code on Windows?

What is the way to totally uninstall Visual Studio Code and its extensions, including all configurations, etc.) on Windows 10?

I tried uninstalling and installing but it remembered its previous settings.

Upvotes: 85

Views: 188388

Answers (7)

alshafi
alshafi

Reputation: 1199

Here is the complete solution you can apply:

  1. Go to where Visual Studio Code is installed and invoke 'uninst000.exe'. In my case it is installed in %LOCALAPPDATA%\Programs\Microsoft VS Code

  2. Delete directory %APPDATA%\Code

  3. Delete directory %USERPROFILE%\.vscode

Upvotes: 68

Joseph Charles
Joseph Charles

Reputation: 726

Turns out the extensions are stored under %USERPROFILE%\.vscode\extensions. Deleting that gets rid of them.

Upvotes: 39

Trishant Pahwa
Trishant Pahwa

Reputation: 2943

Since, you might already know the drill to uninstall and you are emphasizing on remembered its previous settings, please do the following:

  1. Open Run (Win + R)
  2. Type %appdata%
  3. Press Enter
  4. Delete the folder Code

Voila! Restart Visual Studio Code and it is reset!

Here is a bat script which does the same thing:

explorer.exe %appdata%
del Code

P.S: Since, you want to uninstall go to Add or Remove Programs and click on bottom right of the Visual Studio Code tile, where it says Uninstall.

Upvotes: 114

dandush03
dandush03

Reputation: 255

The only thing that can asure any trace if a file is removed, go ahead to your sudo user

In ubuntu: sudo -i, others might use sudo - su

then you want to proceed with the global search, then you must run:

find / -name "vscode"

You will probably end up having a lot of permission denied, but that's ok. we don't want to access them anyways.

Now you'll end up with a big list of files to remove, so you can go one by one and ensure you're in fact removing them OR...

you can just run find / -name "*vscode*" | grep vscode | xargs rm -rf

Upvotes: -1

Abdulla Nilam
Abdulla Nilam

Reputation: 38584

Since you use the word Completely, I would say

  1. Do the regular Uninstall in "Apps & features."
  2. In strat, search "environment variable" and remove all the references for `Visual Studio Code or any installation path.
  3. In file Explore, type %APPDATA% and remove the folder called Code.
  4. And got to %LOCALAPPDATA% and deleted the folder code if it exists.
  5. Got to %USERPROFILE%\AppData\Roaming and remove the folder code

This will remove all your configurations and the extensions

FYI: Uninstall Visual Studio Code by code.visualstudio.com

Upvotes: 4

Tushar Budhe
Tushar Budhe

Reputation: 111

Go to Path: C:\Program Files\Microsoft VS Code

Double Click uninstall.exe

This will uninstall VS Code from Your Windows OS and

After uninstallation delete code folder also.

Open Run (Win + R) and Enter %appdata% Press Enter

Delete the folder code.

Upvotes: 9

Willie Cheng
Willie Cheng

Reputation: 8253

Easy way to remove it

Step1: to find VSCode path
Example: C:\Users\Willie\AppData\Local\Programs\Microsoft VS Code

enter image description here

Step2: to run unins000.exe

enter image description here

Upvotes: 8

Related Questions