What gets deleted when you uninstall VS Code
Uninstalling VS Code itself — the program you click to open — is straightforward on any operating system. But VS Code also stores settings, extensions, and project data in hidden folders on your computer that the uninstaller does not touch. If you want a completely clean removal, you need to delete both the application and these hidden storage locations.
The difference matters. If you reinstall VS Code without clearing the hidden folders, your old settings and extensions will still be there. If you are troubleshooting a broken installation or switching to a different editor, you probably want everything gone.
Key Takeaways
- Uninstalling VS Code through your operating system's normal uninstall process removes only the program itself, not your settings or extensions.
- VS Code stores user data in hidden folders: .vscode on Windows and Linux, and .vscode in your home directory on Mac.
- You must manually delete these hidden folders to remove all traces of VS Code, including all extensions and configuration files.
- The steps differ between Windows, Mac, and Linux because each operating system stores these folders in different locations.
Deleting VS Code on Windows
Start by uninstalling the program itself. Open Settings, go to Apps, then Apps & Features. Find Visual Studio Code in the list, click it, and select Uninstall. Follow the prompts to completion.
Next, delete the hidden folder where VS Code stores everything else. Open File Explorer and navigate to your user folder — usually C:\Users\YourUsername. At the top of the window, click the View tab, then check the box for Hidden Items. This makes hidden files and folders visible.
Look for a folder named .vscode. Right-click it and select Delete. You may also find an AppData folder in the same location; open it, then Local, then look for any VS Code-related folders and delete those too. If you see a folder called Code, delete that as well — it contains cached data.
Deleting VS Code on Mac
Uninstall the program first. Open Finder, go to Applications, find Visual Studio Code, right-click it, and select Move to Trash. Empty the Trash afterward.
Then remove the hidden configuration folder. Open Finder and press Command + Shift + Period (the period key). This toggles the visibility of hidden files. Navigate to your home folder — you can click the house icon in the Finder sidebar — and look for a folder named .vscode. Drag it to Trash.
You may also find a folder called .config in your home directory. Open it and look for any VS Code-related folders inside, then delete those. Empty the Trash when you are done.
Deleting VS Code on Linux
The uninstall command depends on which package manager your system uses. If you installed VS Code through your distribution's package manager (apt, yum, pacman, etc.), open a terminal and run the appropriate command for your system — for example, sudo apt remove code on Ubuntu or Debian.
After uninstalling, delete the hidden configuration folder. Open a terminal and run rm -rf ~/.vscode. This removes the entire .vscode folder from your home directory. You can also delete ~/.config/Code to remove cached data by running rm -rf ~/.config/Code.
If you installed VS Code by downloading it directly rather than through a package manager, you may also have a folder in your home directory or in /opt containing the program files. Check your installation location and delete that folder as well.
Verifying that all files are removed
After deletion, you can confirm that VS Code is completely gone. On Windows, open File Explorer, navigate to your user folder with hidden items visible, and search for any remaining folders or files with "vscode" or "code" in the name. On Mac, open Finder with hidden files visible and do the same search in your home directory. On Linux, open a terminal and run find ~ -name "*vscode*" -o -name "*Code*" to search your home directory.
If the search returns no results, all VS Code files have been removed. If you find anything, delete it manually. You can now reinstall VS Code fresh, and it will start with no previous settings or extensions.
Removing just extensions without uninstalling
If you want to keep VS Code but remove all your extensions, you do not need to uninstall anything. Open VS Code, go to the Extensions view on the left sidebar, and you will see all installed extensions listed. Click the gear icon next to each one and select Uninstall. Alternatively, you can delete the extensions folder directly: on Windows and Linux, it is inside the .vscode folder under a subfolder called extensions. On Mac, it is in ~/.vscode/extensions.
Deleting the extensions folder and restarting VS Code will remove all extensions at once. Your settings and other configuration will remain untouched.
Removing settings without uninstalling
If you want to reset VS Code to its default state but keep the program installed, you can delete just your settings file. Open VS Code, press Ctrl + Shift + P (or Cmd + Shift + P on Mac) to open the command palette, and type Preferences: Open Settings (JSON). This shows you where your settings file is stored. Close VS Code, navigate to that location, and delete the settings.json file. When you reopen VS Code, it will use default settings.
You can also reset everything through the interface: go to File, Preferences, Settings, and look for a Reset option. Some versions of VS Code include a command to reset all settings at once through the command palette.
Frequently Asked Questions
Will uninstalling VS Code delete my project files?
No. Uninstalling VS Code removes only the program and its configuration. Your actual project folders and code files stay on your computer wherever you saved them. You can reinstall VS Code and open those projects again without any loss.
Do I need to delete the .vscode folder inside each project?
No, that is a different folder. Each project can have its own .vscode folder inside it that stores project-specific settings. Deleting the .vscode folder in your home directory or user folder removes your global VS Code configuration, not project folders. Project .vscode folders are safe to leave alone.
What if I cannot see the .vscode folder even after enabling hidden files?
Make sure you are looking in the correct location. On Windows and Linux, it should be in your home folder (C:\Users\YourUsername on Windows, or ~ on Linux). On Mac, it should be in your home folder as well. If you still cannot find it, the folder may not exist yet, which means VS Code has not created it — in that case, there is nothing to delete.
Can I delete these folders while VS Code is running?
You can try, but it is safer to close VS Code first. If the program is running, it may be using files in those folders, and deletion might fail or cause errors. Close VS Code completely before deleting any configuration folders.
Will deleting these folders affect other Microsoft products?
No. The .vscode folder and VS Code configuration are specific to VS Code only. Other Microsoft applications like Visual Studio (the full IDE, not VS Code) store their settings in different locations and will not be affected.