SHARE
TWEET

Untitled

a guest Sep 29th, 2017 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # This is a simple script to uninstall Xamarin from your machine.
  3.  
  4. # Uninstall Xamarin Studio
  5.  
  6. rm -rf "/Applications/Xamarin Studio.app"
  7. rm -rf ~/Library/Caches/XamarinStudio-*
  8. rm -rf ~/Library/Logs/XamarinStudio-*
  9. rm -rf ~/Library/Preferences/XamarinStudio-*
  10. rm -rf ~/Library/XamarinStudio-*
  11.  
  12.  
  13. # Uninstall Mono MDK
  14. # You will also want to make sure that there are no other dependencies on Mono
  15.  
  16. sudo rm -rf /Library/Frameworks/Mono.framework
  17. sudo pkgutil --forget com.xamarin.mono-MDK.pkg
  18.  
  19.  
  20. # Uninstall Xamarin.Android
  21.  
  22. sudo rm -rf /Developer/MonoDroid
  23. sudo rm -rf /Library/Frameworks/Xamarin.Android.framework
  24. sudo pkgutil --forget com.xamarin.android.pkg
  25. rm -rf ~/Library/MonoAndroid
  26.  
  27.  
  28. # Uninstall Xamarin.iOS
  29.  
  30. rm -rf ~/Library/MonoTouch
  31. sudo rm -rf /Library/Frameworks/Xamarin.iOS.framework
  32. sudo rm -rf /Developer/MonoTouch
  33. sudo pkgutil --forget com.xamarin.monotouch.pkg
  34. sudo pkgutil --forget com.xamarin.xamarin-ios-build-host.pkg
  35.  
  36. ## To Uninstall the Xamarin Build Host
  37.  
  38. sudo rm -rf "/Applications/Xamarin.iOS Build Host.app"
  39.  
  40. ## To unload and remove the Xamarin Build Host launchd job
  41.  
  42. launchctl unload /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
  43. sudo rm -f /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
  44.  
  45.  
  46. # Uninstall Xamarin.Mac
  47.  
  48. sudo rm -rf /Library/Frameworks/Xamarin.Mac.framework
  49. rm -rf ~/Library/Xamarin.Mac
  50.  
  51. # Uninstall Xamarin Installer
  52.  
  53. rm -rf ~/Library/Caches/XamarinInstaller/
  54. rm -rf ~/Library/Logs/XamarinInstaller/
  55. rm -rf ~/Library/Preferences/Xamarin/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top