Uninstalling Xamarin

Uninstalling Xamarin products from a computer

PDF for offline use:
Sample Code:

Let us know how you feel about this.

Thanks for the feedback!

last updated: 2016-11

This article explains how to uninstall Xamarin Studio or other Xamarin products from a Mac or Windows computer.


There are a number of Xamarin products that enable cross platform application development on Mac or Windows machine—Xamarin Studio, Xamarin.Android, Xamarin.iOS and on Mac: Xamarin.Mac. This guide will explain how to uninstall the Xamarin toolset..

In this guide we will look at:

  1. Uninstalling Xamarin Studio
  2. Uninstalling Mono
  3. Uninstalling Xamarin.Android
  4. Uninstalling Xamarin.iOS
  5. Uninstalling Xamarin.Mac
  6. Uninstalling Xamarin from Windows
  7. Uninstalling Visual Studio for Mac

If it is necessary to re-install Xamarin using the Universal Installer, it is always recommended that the computer is rebooted first.

Uninstalling Xamarin on Mac

This guide can be used to uninstall each product individually by navigating to the relevant section. The entire Xamarin toolset can be uninstalled by following this guide the whole way through.

For help with using the Uninstall script, jump to the Using the Uninstall Script at the bottom of this guide.

Uninstall Xamarin Studio

The first step in uninstalling Xamarin Studio from a Mac is to locate Xamarin Studio.app in the /Applications directory and drag it to the Trash Can. Alternatively, right-click and select Move to Trash as illustrated below:

Deleting this app bundle will remove Xamarin Studio, however, there are other files relating to Xamarin still on a file system.

To remove all traces of Xamarin Studio, the following commands should be run in Terminal:

sudo rm -rf "/Applications/Xamarin Studio.app"
rm -rf ~/Library/Caches/XamarinStudio-*
rm -rf ~/Library/Preferences/XamarinStudio-*
rm -rf ~/Library/Logs/XamarinStudio-*
rm -rf ~/Library/XamarinStudio-*

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#.


Note: 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.

To remove the Mono Framework from a machine, run the following commands in Terminal:

sudo rm -rf /Library/Frameworks/Mono.framework
sudo pkgutil --forget com.xamarin.mono-MDK.pkg

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. More information about these required components is available in the Manual Installation guide.

Use the following commands to remove Xamarin.Android:

sudo rm -rf /Developer/MonoDroid
rm -rf ~/Library/MonoAndroid
sudo pkgutil --forget com.xamarin.android.pkg
sudo rm -rf /Library/Frameworks/Xamarin.Android.framework

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, as illustrated below:

The Java SDK (JDK) does not need to be uninstalled, as it is already pre packaged as part of Mac OS X.

Uninstall Xamarin.iOS

Xamarin.iOS allows iOS application development using C# or F# with Xamarin Studio on a Mac. The Xamarin Build Host was also installed automatically with earlier versions of Xamarin.iOS to allow for iOS development in Visual Studio. To uninstall both from a machine, follow the steps below:

Use the following commands in Terminal to remove all Xamarin.iOS files from a file system:

rm -rf ~/Library/MonoTouch
sudo rm -rf /Library/Frameworks/Xamarin.iOS.framework
sudo rm -rf /Developer/MonoTouch
sudo pkgutil --forget com.xamarin.monotouch.pkg
sudo pkgutil --forget com.xamarin.xamarin-ios-build-host.pkg

Uninstall the Mac Build Host

Note: This may already have been removed if you have already updated to to Xamarin 4 Run the following command in Terminal to remove the Build Host application:

sudo rm -rf "/Applications/Xamarin.iOS Build Host.app"

The Build Host process or launchd job may still be running or listening on certain ports. You can check its status by running launchctl list | grep com.xamarin.mtvs.buildserver in Terminal.

sudo launchctl unload /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
sudo rm -f /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist

Uninstall Xamarin.Mac

Once Xamarin Studio has been successfully uninstalled, Xamarin.Mac can be removed from your machine using the following two commands to eradicate the product and license from your Mac respectively:

sudo rm -rf /Library/Frameworks/Xamarin.Mac.framework
rm -rf ~/Library/Xamarin.Mac

Uninstall the Xamarin Installer

Use the following commands to remove all traces of the Xamarin Universal Installer:

rm -rf ~/Library/Caches/XamarinInstaller/
rm -rf ~/Library/Logs/XamarinInstaller/
rm -rf ~/Library/Preferences/Xamarin/

Using the Uninstall Script

The uninstall script will remove Xamarin from a computer. To use the uninstall script:

  1. Download the uninstall script and make a note of the download location. By default this is the /Downloads directory.
  2. Open Terminal and change the directory to the one containing the script by typing: cd /location/of/file
  3. Typing pwd will print the working directory (the one you are currently in). You should be able to see the script entitled xamarin_uninstall.sh
  4. To run the script type: ./xamarin_uninstall.sh

That’s it. Xamarin should now be successfully removed from the computer.

Uninstalling Xamarin on Windows

Xamarin can be uninstalled from a Windows machine through Control Panel. Navigate to Programs and Features or Programs > Uninstall a Program as illustrated below:

To uninstall Xamarin Studio, find Xamarin Studio 5.x.x in the list of programs and click the Uninstall button. To remove the Xamarin extension for Visual Studio, and the SDKs, find Xamarin in the list of Programs and click Uninstall. These are illustrated in the screenshot below:

These programs may also be removed to completely all Xamarin components:

  • Android SDK
  • GTK#
  • Xamarin Universal Installer
  • Java SDK (Be careful when removing this, as there may be other dependencies on it)

Uninstalling Visual Studio for Mac

To uninstall Visual Studio for Mac but to keep using Xamarin Studio, 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 below:

To uninstall Xamarin completely from your machine, first delete Visual Studio for Mac, and then follow the steps listed in the Uninstall Xamarin Studio section.


In this article we looked at uninstalling Xamarin completely from a Mac through the use of Terminal commands, as well as uninstalling Xamarin from a Windows machine through the Programs and Features option.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.