How to Uninstall VS Code Completely on Windows, macOS, and Linux

Remove VS Code and all user data from Windows, macOS, and Linux. Covers standard uninstall, clean uninstall, and what to back up before deleting.

5 min read

The standard uninstall removes the application. A clean uninstall also removes your settings, extensions, and cached data. This returns VS Code to the same state as before you ever installed it.

Your project files are never affected by uninstalling VS Code. The editor only removes its own application files and user data.

Before you start

If you plan to reinstall VS Code later and want to keep your settings, do one of the following first:

  • Enable Settings Sync. Sign in with a GitHub account, and your settings, keybindings, profiles, and snippets sync to the cloud. After reinstalling, sign in again to restore everything.

Copy your settings files manually. The settings.json and keybindings.json files are in your user data folder. Save them somewhere safe before deleting the folder.

If you are switching to a different editor and do not need your VS Code settings, skip the backup.

Windows

The uninstall method depends on how you installed VS Code.

User or System installer

Use the Windows Apps settings to uninstall:

  • Open Settings > Apps > Installed apps.
  • Search for "Visual Studio Code".
  • Click the three dots on the right and select Uninstall.
  • Follow the prompts.

You can also use the Control Panel. Go to Programs > Uninstall a program, find Visual Studio Code, right-click, and choose Uninstall.

ZIP archive installation

If you installed by extracting a ZIP file, delete the folder where you extracted the contents. There is no uninstaller. The application is gone as soon as you delete the folder.

Clean uninstall on Windows

After uninstalling the application, delete these folders to remove all user data:

  • %APPDATA%\Code holds your settings, keybindings, snippets, workspace storage, and cached data.
  • %USERPROFILE%\.vscode holds your installed extensions.

Open File Explorer and paste each path into the address bar, then delete the folder.

macOS

Standard uninstall

Open Finder and go to Applications. Drag Visual Studio Code to the Trash, or right-click and choose Move to Trash. Empty the Trash to complete the removal.

Clean uninstall on macOS

After moving the app to Trash, delete these folders to remove all user data:

  • ~/Library/Application Support/Code holds your settings, keybindings, snippets, workspace storage, and cached data.
  • ~/.vscode holds your installed extensions.

Open Finder, press Cmd+Shift+G, paste each path, and delete the folder.

Linux

The uninstall command depends on how you installed VS Code.

For Debian and Ubuntu, remove the package with apt. This uninstalls the application but keeps your user data:

bashbash
sudo apt remove code

For Fedora and RHEL, the dnf package manager works the same way. Run this to remove the editor while keeping your user data intact:

bashbash
sudo dnf remove code

For Snap, if you installed through the Snap Store, the remove command handles both the package and its configuration data:

bashbash
sudo snap remove code

For Arch Linux, if you installed the AUR package visual-studio-code-bin, use your AUR helper to remove it from the system:

bashbash
yay -R visual-studio-code-bin

If you installed the Insiders build, replace code with code-insiders in the command above.

Clean uninstall on Linux

After removing the package, delete these folders:

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

The .config/Code folder contains your settings, keybindings, snippets, workspace storage, and cached data. The .vscode folder contains your installed extensions.

What a clean uninstall removes

When you delete the user data folders, here is everything that goes away:

  • User settings and workspace settings
  • Keyboard shortcuts and keybindings
  • Installed extensions and their data
  • Profiles and profile configurations
  • Code snippets
  • Workspace storage and recently opened lists
  • Cached data and temporary files

If you enabled Settings Sync, your settings, keybindings, profiles, and snippets are stored in the cloud and will restore when you sign in on a fresh install.

Reinstall after a clean uninstall

After a clean uninstall, installing VS Code again gives you a completely fresh start. It is the same as installing for the first time. If you backed up your settings with Sync, sign in after reinstalling and everything restores.

For install instructions, see the Windows install guide. If you need to update rather than remove, follow the update guide for Windows, macOS, and Linux.

Rune AI

Rune AI

Key Insights

  • On Windows, uninstall from Settings > Apps or Control Panel. Delete the Code and .vscode folders for a clean removal.
  • On macOS, drag VS Code from Applications to Trash. Delete ~/Library/Application Support/Code and ~/.vscode to remove user data.
  • On Linux, use your package manager (apt remove code, dnf remove code, etc.) to uninstall.
  • Your project files are never touched. Only the editor and its settings are removed.
  • Enable Settings Sync or copy your settings files before a clean uninstall if you want to restore them.
RunePowered by Rune AI

Frequently Asked Questions

Will uninstalling VS Code delete my project files?

No. Your project folders and source code files are stored wherever you created them. Uninstalling VS Code only removes the editor application and its user data. Your projects stay untouched unless you manually delete them.

What gets removed during a clean uninstall?

A clean uninstall removes user settings, keybindings, installed extensions, profiles, snippets, workspace storage, and cached data. The folders to delete are the Code data folder and the .vscode folder in your home directory. Exact paths vary by platform.

Should I back up my settings before uninstalling?

Yes, if you plan to reinstall later. Enable Settings Sync before uninstalling and your settings, keybindings, profiles, and snippets will restore when you sign in on a fresh install. You can also copy the settings.json and keybindings.json files manually from the user data folder.

Conclusion

Uninstalling VS Code is straightforward. Use the standard platform method to remove the application, then decide whether to keep or delete your user data. The clean uninstall steps reset everything. Back up your settings first if you plan to reinstall.