Skip to content

Latest commit

 

History

History
150 lines (97 loc) · 7.37 KB

uninstall-visual-studio.md

File metadata and controls

150 lines (97 loc) · 7.37 KB
title titleSuffix description ms.date ms.custom ms.topic f1_keywords author ms.author manager ms.subservice
Uninstall or remove Visual Studio
Uninstall or remove your installation of Visual Studio along with its integrated suite of productivity tools for developers.
06/18/2024
vs-acquisition
how-to
uninstall
uninstall Visual Studio
anandmeg
meghaanand
mijacobs
installation

Uninstall or remove Visual Studio

This page walks you through uninstalling Visual Studio, the integrated suite of productivity tools for developers.

Tip

If you're having trouble with your instance of Visual Studio, try the Repair Visual Studio tool.

To change the location for some of your Visual Studio files, it's possible to do so without uninstalling your current instance as described in Select the installation locations.

Uninstall by using Visual Studio Installer

Visual Studio Installer can uninstall versions of Visual Studio.

::: moniker range="vs-2019"

  1. Find the Visual Studio Installer on your computer.

    In the Windows Start menu, you can search for installer.

    :::image type="content" source="media/vs-2019/visual-studio-installer.png" alt-text="Screenshot shows searching for the Visual Studio Installer in order to remove Visual Studio 2019.":::

    [!NOTE] You can also find the Visual Studio Installer in the following location:

    C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe

    You might have to update the installer before you continue. If so, follow the prompts.

  2. In the installer, look for the edition of Visual Studio that you installed. Next, choose More, and then choose Uninstall.

    :::image type="content" source="media/vs-2019/vs-installer-uninstall.png" alt-text="Screenshot shows the installed version of Visual Studio 2019 with Uninstall selected from the More menu.":::

  3. Select OK to confirm your choice.

    :::image type="content" source="media/vs-2019/uninstall-visualstudio-confirm.png" alt-text="Screenshot shows a dialog box to confirm that you want to uninstall Visual Studio 2019.":::

If you change your mind later and want to reinstall Visual Studio 2019, start the Visual Studio Installer again, choose the Available tab, choose the edition of Visual Studio that you want to install, and then select Install.

::: moniker-end

::: moniker range=">=vs-2022"

  1. Find the Visual Studio Installer on your computer.

    In the Windows Start menu, you can search for installer.

    :::image type="content" source="media/vs-2019/visual-studio-installer.png" alt-text="Screenshot shows searching for the Visual Studio Installer in order to remove Visual Studio 2022.":::

    [!NOTE] You can also find the Visual Studio Installer in the following location:

    C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe

    You might have to update the installer before you continue. If so, follow the prompts.

  2. In the installer, look for the edition of Visual Studio that you installed. Next, choose More, and then choose Uninstall.

    :::image type="content" source="media/vs-2022/vs-installer-uninstall.png" alt-text="Screenshot shows the installed version of Visual Studio 2022 with Uninstall selected from the More menu.":::

  3. Select OK to confirm your choice.

    :::image type="content" source="media/vs-2022/uninstall-visualstudio-confirm.png" alt-text="Screenshot shows a dialog box to confirm that you want to uninstall Visual Studio 2022.":::

If you change your mind later and want to reinstall 2022, start the Visual Studio Installer again, choose the Available tab, choose the edition of Visual Studio that you want to install, and then select Install.

::: moniker-end

Uninstall Visual Studio

::: moniker range="vs-2019"

To remove all installations of Visual Studio 2019, and the Visual Studio Installer from your machine, uninstall it from Installed apps.

  1. In Windows 10 or later, type Add or remove programs in the Windows search box.
  2. Find Visual Studio 2019.
  3. Choose Uninstall.
  4. Then, find Microsoft Visual Studio Installer.
  5. Choose Uninstall.

::: moniker-end

::: moniker range=">=vs-2022"

To remove all installations of Visual Studio 2022, and the Visual Studio Installer from your machine, uninstall it from Installed apps.

  1. In Windows 10 or later, type Add or remove programs in the Windows search box.
  2. Find Visual Studio 2022.
  3. Choose Uninstall.
  4. Then, find Microsoft Visual Studio Installer.
  5. Choose Uninstall.

::: moniker-end

Remove all with InstallCleanup.exe

If you experience a catastrophic error and can't repair or uninstall Visual Studio, you can run the InstallCleanup.exe tool to remove installation files and product information for all installed instances of Visual Studio 2017, Visual Studio 2019, or Visual Studio 2022.

Warning

Use the InstallCleanup tool only as a last resort if repair or uninstall fail. This tool might uninstall features from other Visual Studio installations or other products, which you then might need to repair or reinstall.

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

  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 Windows search box.
    2. Right-click Command Prompt, and then choose Run as administrator.
  3. Enter the full path of the InstallCleanup.exe tool and add the command-line parameters that you prefer. By default, the path of the tool is as follows. The double quotes enclose a command that contains spaces:

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

    [!NOTE] The Visual Studio Installer directory is always located at %ProgramFiles(x86)%\Microsoft Visual Studio. If you can't find InstallCleanup.exe there, follow the instructions to install Visual Studio. Then, when the workload selection screen is displayed, close the window and follow the steps in this section again.

    These options are available:

    Parameter Behavior
    -i [version] If you don't specify a value, uses the default version. Removes only the main installation directory and product information. Use this parameter if you intend to reinstall the same version of Visual Studio. If you specify a [version] value, the tool removes only products with a version that start with this string value. For example, use the value -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 parameter if you intend to remove Visual Studio without reinstalling it later.

[!INCLUDEinstall_get_support_md]

Related content