How to Uninstall Visual Studio on Windows 11

Visual Studio is one of the most powerful IDEs available for Windows, but it’s also quite large. Over time, it can take up tens of gigabytes of space on your system, especially if you’ve installed multiple workloads or SDKs.

If you no longer need it or want to free up space, uninstalling Visual Studio properly is important. Simply deleting its folder won’t remove everything — leftover files, components, and registry entries can remain on your PC.

In this guide, we’ll walk you through the right way to uninstall Visual Studio on Windows 11 — completely and cleanly.

1. Close Visual Studio and Related Services

Before starting the uninstallation, make sure Visual Studio and any related background processes are closed.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. In the Processes tab, look for any Visual Studio-related tasks like Microsoft Visual Studio, MSBuild, or ServiceHub.Host.
  3. Right-click each one and select End task.

This ensures no background process interferes during removal.

2. Uninstall Visual Studio Using the Installer

Visual Studio includes its own built-in uninstaller, which is the safest and most effective method to remove it completely.

  1. Press Windows + S and type Visual Studio Installer, then open it.
  2. Inside the installer, you’ll see all installed versions of Visual Studio (for example, Visual Studio 2022 Community or Professional).
  3. Click the More (⋯) icon next to the version you want to uninstall.
  4. Select Uninstall.

The uninstaller will remove Visual Studio and its associated components. Depending on how many workloads were installed, this process may take several minutes.

Once the process completes, restart your computer to ensure all files are properly removed.

3. Remove Visual Studio Installer (Optional)

After uninstalling Visual Studio itself, the Visual Studio Installer might still remain on your system. If you no longer need it, you can remove it too.

  1. Open Settings → Apps → Installed apps.
  2. In the search box, type Visual Studio Installer.
  3. Click the three dots next to it and choose Uninstall.

This will delete the installer and any cached setup files from your system.


4. Delete Remaining Components Manually

Even after running the uninstaller, a few leftover files may still be present. You can safely remove them to reclaim additional disk space.

A. Delete Program Files

  1. Open File Explorer and go to: C:\Program Files (x86)\Microsoft Visual Studio
  2. Delete any remaining Visual Studio folders.
  3. Also check: C:\Program Files\Microsoft Visual Studio and remove leftover files if found.

B. Delete AppData Cache

  1. Press Windows + R, type %AppData%, and press Enter.
  2. In the opened directory, navigate to: \Microsoft\VisualStudio
  3. Delete this folder if it exists.

You should also repeat this in %LocalAppData% (just type that into the Run dialog).

C. Clear Temporary Files

  1. Press Windows + R, type temp, and hit Enter.
  2. Delete all temporary files.
  3. Do the same for %temp%.

5. Use Visual Studio Uninstall Utility (Advanced Cleanup)

If you want to remove every trace of Visual Studio — including registry entries, SDKs, and components that aren’t removed by default — Microsoft provides a command-line uninstall tool.

  1. Visit the official Microsoft page for the Visual Studio Uninstall Utility or open your existing Visual Studio Installer folder: C:\Program Files (x86)\Microsoft Visual Studio\Installer\
  2. Find the file named InstallCleanup.exe.
  3. Right-click it and select Run as administrator.

When the tool opens, you’ll see several cleanup options. Running it removes all versions and components of Visual Studio from your system.

Alternatively, you can run the following command in Command Prompt (Admin):

"C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe" -full

This performs a deep cleanup, deleting all leftover registry keys, SDK components, and Visual Studio folders.

6. Restart Your System

After completing all the cleanup steps, restart your computer once more. This ensures that any temporary files or pending deletions are finalized.

Once your PC restarts, Visual Studio and all associated components should be completely removed from your Windows 11 system.

7. Optional: Reinstall or Switch Editions

If your goal was to fix issues by reinstalling Visual Studio or switching to another edition, you can now perform a clean installation.

Visit visualstudio.microsoft.com and download the latest installer for Visual Studio 2022 (Community, Professional, or Enterprise edition).

Installing from a clean slate ensures fewer performance problems and less disk clutter than upgrading over an existing installation.

Conclusion

Uninstalling Visual Studio on Windows 11 isn’t just about freeing up space — it’s also about keeping your system clean and stable. By following the steps above, you’ve removed the IDE, its components, and all associated data from your computer.

Whether you’re making room for other development tools or planning a fresh Visual Studio install, your system is now ready for a clean, optimized development environment.

And if you ever reinstall it, you’ll know exactly how to keep things organized from start to finish — without leftover files slowing you down.

Posted by Arpita

With a background in Computer Science, she is passionate about sharing practical programming tips and tech know-how. From writing clean code to solving everyday tech problems, she breaks down complex topics into approachable guides that help others learn and grow.

X