How to uninstall VS 2022 and everything else it installs?

Matthew 0 Reputation points
2023-09-08T20:20:48.64+00:00

I want to completely remove Visual Studio 2022 and everything else it installs like font iis sql etc. I already ran the normal uninstaller and the installcleanup.exe but I still have all these extra programs and folders everywhere. Do I really have to reinstall my OS to get rid of this thing?

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,062 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zhengye Xu-MSFT 95 Reputation points Microsoft Vendor
    2023-09-11T07:40:37.82+00:00

    Hello @ Matthew ,

    Welcome to Microsoft Q&A forum.

    If you need to clean up everything about Visual Studio, you can use the InstallCleanup .exe

    Here's how to run the tool: InstallCleanup.exe

    1.Close the Visual Studio Installer.

    2.Open an administrator command prompt. To open an administrator command prompt, follow these steps:

    (1)Type cmd in the "Type here to search" box.

    (2)Right-click Command Prompt, and then choose Run as administrator.

    3.Enter the full path of the tool and add the command-line switch you prefer. By default, the path of the tool is: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe"

    Here are the switches and their functions.

    -i [version] :

    Default if no other switch is passed. It removes only the main installation directory and product information. Use this switch if you intend to reinstall the same version of Visual Studio. If a value is specified, only products with a version that start with this string value will be removed. For example, use the switch -i 17 with to remove all products of version 17.

    -f :

    Removes the main installation directory, product information, and most other features installed outside the installation directory, that might also be shared with other Visual Studio installations or other products. Use this switch if you intend to remove Visual Studio without reinstalling it later.

    For more detailed information, please refer to the official documentation:

    https://learn.microsoft.com/en-us/visualstudio/install/uninstall-visual-studio?view=vs-2022#remove-all-with-installcleanupexe

    Have a nice day.

    Best Regards,

    Zhengye


     

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.