title | description | author | ms.author | ms.date | ms.technology | ms.assetid |
---|---|---|---|---|---|---|
Instructions for uninstalling Visual Studio for Mac and related tools. | amburns | vs-ide-install |
- How To Uninstall Visual Studio For Mac
- Uninstall Vscode Mac
- Visual Studio
- Uninstall Visual Studio Code Mac
- Uninstall Visual Studio 2017 Mac
How To Uninstall Visual Studio For Mac
You can use this guide to uninstall each component in Visual Studio for Mac individually by navigating to the relevant section, or you can use the scripts provided in the Uninstall Script section to uninstall everything.
If you have previously had Xamarin Studio installed on your machine, you may also need to follow the instructions in Xamarin's uninstall guide, in addition to the following steps.
[!NOTE]This information will only remove Visual Studio 2019 or 2017 for Mac from your machine. to uninstall Visual Studio Code, see this issue for details.
I installed Visual Studio Code a while ago, and I'm now trying to remove it. I don't remember how I installed it, but everything I've tried to remove it doesn't work. Visual Studio for Mac Announcement: This forum has been migrated to provide our customers one convenient and responsive system for all feedback. You can now suggest new ideas, browse and vote on existing ideas in the Visual Studio Developer Community. After that you may find you can still connect from Visual Studio as SSH will still be running on your Mac. You can disable this in System Preferences -> Sharing -> Remote Login Thanks for the reply. This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. I have recently tried to uninstall Xamarin Studio and all the belonging files. When I dragged Xamarin Studio and MonoTouch to the recycle bin and cleared it there was no space at all freed on my SSD. Review Visual Studio Code 0.8.0 files or folders, click Complete Uninstall button and then click Yes in the pup-up dialog box to confirm Visual Studio Code 0.8.0 removal. The whole uninstall process may takes even less than one minute to finish, and then all items associated with Visual Studio Code 0.8.0 has been successfully removed from your Mac! How can the answer be improved?
Uninstall Script
There are two scripts that can be used to uninstall Visual Studio for Mac and all components for your machine:
The following sections provide information on downloading and using the scripts.
Visual Studio for Mac and Xamarin script
You can uninstall Visual Studio and Xamarin components in one go by using the uninstall script.
This uninstall script contains most of the commands that you will find in the article. There are three main omissions from the script and are not included due to possible external dependencies. To remove this, jump to the relevant section below and remove them manually:
To run the script, do the following steps:
Right-click on the script and select Save As to save the file on your Mac.
Open Terminal and change the working directory to where the script was downloaded:
Make the script executable and the run it with sudo:
Finally, delete the uninstall script and remove Visual Studio for Mac from the dock (if it's there).
.NET Core script
The uninstall script for .NET Core is located in the dotnet cli repo
To run the script, do the following steps:
Right-click on the script and select Save As to save the file on your Mac.
Open Terminal and change the working directory to where the script was downloaded:
Make the script executable and the run it with sudo:
Finally, delete the .NET Core uninstall script.
Uninstall Visual Studio for Mac
The first step in uninstalling Visual Studio from a Mac is to locate Visual Studio.app in the /Applications directory and drag it to the Trash Can. Alternatively, right-click and select Move to Trash as illustrated in the following image:
Deleting this app bundle removes Visual Studio for Mac, even though there may be other files related to Xamarin still on the file system.
To remove all traces of Visual Studio for Mac, run the following commands in Terminal:
You may also want to remove the following directory containing various Xamarin files and folders. However, before you do you should be aware that this directory contains the Android signing keys. For more information refer to the section Uninstalling Android SDK and Java SDK:
Uninstall Mono SDK (MDK)
Mono is an open-source implementation of Microsoft's .NET Framework and is used by all Xamarin Products—Xamarin.iOS, Xamarin.Android, and Xamarin.Mac to allow development of these platforms in C#.
[!WARNING]There are other applications outside of Visual Studio for Mac that also use Mono, such as Unity.Be sure that there are no other dependencies on Mono before uninstalling it.
To remove the Mono Framework from a machine, run the following commands in Terminal:
Uninstall Xamarin.Android
There are a number of items required for the installation and use of Xamarin.Android, such as the Android SDK and Java SDK.
Use the following commands to remove Xamarin.Android:
Uninstall Android SDK and Java SDK
The Android SDK is required for development of Android applications. To completely remove all parts of the Android SDK, locate the file at ~/Library/Developer/Xamarin/ and move it to Trash.
[!WARNING]You should be aware that Android signing keys that are generated by Visual Studio for Mac are located in ~/Library/Developer/Xamarin/Keystore
. Make sure to back these up appropriately, or avoid removing this directory if you wish to keep your keystore.
The Java SDK (JDK) does not need to be uninstalled, as it is already pre-packaged as part of Mac OS X / macOS.
Uninstall Android AVD
[!WARNING]There are other applications outside of Visual Studio for Mac that also use Android AVD and these additional android components, such as Android Studio.Removing this directory may cause projects to break in Android Studio.
To remove any Android AVDs and additional Android components use the following command:
To remove only the Android AVDs use the following command:
Uninstall Xamarin.iOS
Xamarin.iOS allows iOS application development using C# or F# with Visual Studio for Mac.
Use the following commands in Terminal to remove all Xamarin.iOS files from a file system:
Uninstall Xamarin.Mac
Xamarin.Mac can be removed from your machine using the following two commands to eradicate the product and license from your Mac respectively:
Uninstall Workbooks and Inspector
Starting with 1.2.2, Xamarin Workbooks & Inspector can be uninstalled from a terminal by running:
For older versions, you need to manually remove the following artifacts:
- Delete the Workbooks app at
'/Applications/Xamarin Workbooks.app'
- Delete the Inspector app at
'Applications/Xamarin Inspector.app'
- Delete the add-ins:
'~/Library/Application Support/XamarinStudio-6.0/LocalInstall/Addins/Xamarin.Interactive'
and'~/Library/Application Support/XamarinStudio-6.0/LocalInstall/Addins/Xamarin.Inspector'
- Delete Inspector and supporting files here:
/Library/Frameworks/Xamarin.Interactive.framework
and/Library/Frameworks/Xamarin.Inspector.framework
Uninstall the Xamarin Profiler
Uninstall the Visual Studio Installer
Use the following commands to remove all traces of the Xamarin Universal Installer:
Uninstall Visual Studio 2019 for Mac Preview
Visual Studio 2019 for Mac Preview was launched as a separate preview, allowing you to continue to work with your Visual Studio 2017 for Mac install side-by-side.
Now that Visual Studio 2019 for Mac has been released, you can now safely remove the Visual Studio 2019 for Mac Preview application.
To uninstall the preview application bundle, select Visual Studio (Preview) from your Applications folder and click Move to Trash, as depicted in the following image:
You can also remove the Preview plist file with the following command:
Uninstall Vscode Mac
See also
I recently installed Visual Studio for mac right after the day it was launched. It consumed 20 gb of my disc space, so I decided to remove it. I went in to the applications folder and moved recently installed components associated with the installation to the trash. But it did not free any space at all. So I searched online and followed the following link for uninstallation: Uninstalling Xamarin
After following the link and entering all the terminal commands, I was only able to free up 10 gb of storage. How do I free up the rest 10 gb of the storage ?
2 Answers
In case anyone else having the same question visited here, please visit the official guide.
The following is quoted from the original guide which was updated at 2017-4-14.
Uninstall Visual Studio for Mac App
Step 1. Locate Visual Studio.app in the /Applications directory and drag it to the Trash Can. Alternatively, right-click and select Move to Trash.
Step 2. Remove all traces of Visual Studio for Mac
Execute the following commands in your terminal:
Uninstall Xamarin.Android
Uninstall Xamarin.iOS
Uninstall Xamarin.Mac
Uninstall Workbooks and Inspector
Uninstall the Visual Studio Installer
Uninstall Mono SDK (MDK)
Warning
There are other applications outside of Xamarin which also use Mono, such as Unity. Be sure that there are no other dependencies on Mono before uninstalling it.
Other apps with name prefix Xamarin
The official guide didn't mention it, but I found there were other apps named Xamarin.xxxx in my library directory. I simply moved them to trash.
DavidPostillVisual Studio
♦May be this would be better solution (no need to follow each step): https://raw.githubusercontent.com/MicrosoftDocs/visualstudio-docs/master/mac/resources/uninstall-vsmac.sh :
If you haven't dealt with bash script before, you may look at its documentation too: https://docs.microsoft.com/en-us/visualstudio/mac/uninstall
Actually, it is pretty easy. Create a file with extension .sh (for example, vsremover.sh) and paste the code above. Save. Open terminal application, go to the place where you saved the file (for example: cd /Users/yourname/Desktop
) and type the following:
Then run it: