64

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.

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
user3315504
  • 1,055
  • 2
  • 12
  • 17

8 Answers8

98

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.

Trishant Pahwa
  • 2,559
  • 2
  • 14
  • 31
44

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 C:\Users\Shafi\AppData\Local\Programs\Microsoft VS Code

  2. Delete directory C:\Users\Shafi\AppData\Roaming\Code

  3. Delete directory C:\Users\Shafi\.vscode

alshafi
  • 969
  • 7
  • 8
  • I guess I should be smarter but I started at the top. DO NOT DELETE THE .CODE dir. It is for Visual Studio NOT VSCOde. I had several highly configured projects and ALL of their settings are lost. – Charles Bisbee Aug 28 '23 at 23:42
36

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

Joseph Charles
  • 656
  • 6
  • 17
9

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.

Ramesh R
  • 7,009
  • 4
  • 25
  • 38
Tushar Budhe
  • 111
  • 1
  • 3
  • I guess I should be smarter but I started at the top. DO NOT DELETE THE .CODE dir. It is for Visual Studio NOT VSCOde. I had several highly configured projects and ALL of their settings are lost. RTFQ!! – Charles Bisbee Aug 28 '23 at 23:49
7

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

Willie Cheng
  • 7,679
  • 13
  • 55
  • 68
4

Find the location C:\Users\ (your username) Shah907\AppData\Local\Programs\Microsoft VS Code Insiders.

Click on "unins000.exe" and open it to uninstall.

Now find C:\Users\Shah907 and delete " .vscode-insiders " folder.

Now delete " Code - Insiders " in location " C:\Users\Shah907\AppData\Roaming ".

Now Reinstall the Visual Studio Code again.

Enjoy

Ref:DeepDecide

Shah907
  • 41
  • 3
2

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

Abdulla Nilam
  • 36,589
  • 17
  • 64
  • 85
0

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

dandush03
  • 219
  • 4
  • 6