Share via


How to uninstall Visual Studio for Mac Preview version?

Question

Thursday, November 17, 2016 5:13 AM | 3 votes

Hi,

I just downloaded visual studio for mac preview and need to uninstall completely.

How can I do that?

Removing apps from Application folder only removing 600MB, but it installed around 10GB.

I kind of tried to follow this instruction, but not exactly same.

https://developer.xamarin.com/guides/cross-platform/getting_started/installation/uninstalling_xamarin/

Thanks.

All replies (9)

Thursday, November 17, 2016 9:53 AM

Same issue here. I installed it hoping I can use for ASP.NET Core projects, but it doesn't support the json project files. So I guess VS Code is the only option for now.


Thursday, November 17, 2016 12:58 PM

Hai, i also like that, but i might can help you.

you can try to delete

  1. armeabi-v7a inside private > var > folder s5> (only 1 folder here) > t > 755aad8 (might be different in ur laptop) > armeabi-v7a.
  2. go to Users > ur name > library > developer > Xamarin & all folder inside here
  3. go to Users > ur name > library > cache > xamarin installer.

You can delete more than 10GB from there.


Friday, November 18, 2016 2:40 AM

Hi Kevmando,

Welcome to the MSDN forum.

Refer to your description, your issue is more relates to the Xamarin Studio. Since our forum is to discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor, I recommend you redirect to this appropriate forum: https://forums.xamarin.com/ for dedicated information, you will get a more professional support from there, thank you for your understanding.

Meanwhile, I found a similar issue: Complete uninstall on Mac, HELP!, Aco Kralj want to uninstall Xamarin Studio and all the belonging files, and the Xamarin forum support engineer Jeffrey Stedfast suggest to remove the following directories:

/Applications/Xamarin Studio.app

/Developer/MonoTouch

/Developer/MonoAndroid

/Library/Frameworks/Mono.framework

/Library/Frameworks/Xamarin.Mac.framework

/Library/Frameworks/Xamarin.Android.framework

Locations in your user directory:

~/Library/Caches/Xamarin

~/Library/Caches/XamarinStudio-4.0

~/Library/Developer/Xamarin

~/Library/Developer/XamarinStudio

~/Library/Logs/Xamarin

~/Library/Logs/XamarinStudio-4.0

~/Library/Preferences/Xamarin

~/Library/Preferences/XamarinStudio-4.0

~/Library/Xamarin

~/Library/Xamarin.Mac

~/Library/MonoTouch

~/Library/MonoAndroid

~/Library/XamarinStudio-4.0

Best regards,

Sara

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Tuesday, November 22, 2016 6:51 AM

Hi Kevmando,

Sorry to trouble you and I just want to confirm that your issue is solved or not. I saw you added several reply but removed them by yourself.

Best regards,

Sara

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Monday, November 28, 2016 10:08 AM

Hi Kevmando,

If your issue is not solved, you can check the installer log in ~/Library/Logs/XamarinInstaller/Universal as Sandy’s recommendand John Smith found the various things mainly in Library/Frameworks manually removed. All-in-all came to about 14Gb worth so basically most of it.

After that, you can have a look at the following folders and think about remove those files which modified date or created date is the same time when you installed the VS for Mac on your computer. (you can backup it before you remove them)

~/Library/Application Support/ 

~/Library/Preferences

~/Library/Caches

~/Library/Logs/

/Developer/MonoAndroid

Best regards,

Sara

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Thursday, January 19, 2017 1:43 PM

Hi,

Visual Studio Mac Preview is not the same as Xamarin Studio, it installs files to different locations, do you have a list of the locations for Visual Studio for Mac Preview?

Thanks,


Friday, January 20, 2017 6:04 AM

Hi PAE-UK,

Welcome to the MSDN forum.

I found some other community members solved this issue through an application called OmniDiskSweeper, please have a look at this similar issue.

Shrijan Aryal: I was able to solve this big trouble. I downloaded and installed an application called OmniDiskSweeper, and scanned my disk. The app immediately displayed 16 gb of traces of the Visual Studio and I deleted them all to free up all the space. The link to the download is: this

Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

Best regards,

Sara

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Wednesday, March 29, 2017 10:34 AM | 1 vote

Current version Of MS VS takes 20GB on a macOs drive.

Please read the script to avoid removing shared stuff like Mono, NuGet & Visual Studio Code traces if it is needed by another app on your Mac.

Following script will free 20GB of space. Just put it in "uninstall.sh" file and run via terminal as "sudo ./uninstall.sh" (Do not forget to set to set execute permission on the file):

    #!/bin/bash
    # Complete uninstall Microsoft Visual Studio (Xamarin) including Mono and Microsoft NuGet traces:
     
    # Uninstall Xamarin Studio
    rm -rf "/Applications/Xamarin Studio.app"
    rm -rf "/Applications/Xamarin Profiler.app"
    rm -rf "/Applications/Xamarin Workbooks.app"
    rm -rf ~/Library/Caches/XamarinStudio-*
    rm -rf ~/Library/Logs/XamarinStudio-*
    rm -rf ~/Library/Preferences/XamarinStudio-*
    rm -rf ~/Library/XamarinStudio-*
    rm -rf ~/Library/Caches/Xamarin
    rm -rf ~/Library/Caches/VisualStudio
    rm -rf ~/Library/Developer/Xamarin
    rm -rf ~/Library/Developer/XamarinStudio
    rm -rf ~/Library/Developer/VisualStudio
    rm -rf ~/Library/Logs/Xamarin
    rm -rf ~/Library/Logs/VisualStudio
    rm -rf ~/Library/Preferences/Xamarin
    rm -rf ~/Library/Preferences/VisualStudio
    rm -rf ~/Library/Xamarin
    rm -rf ~/Library/MonoAndroid
    rm -rf ~/Library/XamarinStudio-*
    rm -rf ~/Library/VisualStudio
    rm -rf ~/Library/Application\ Support/XamarinStudio-*
    rm -rf ~/Library/Application\ Support/VisualStudio
    rm -rf ~/.templateengine/Visual\ Studio
    rm -rf ~/.share/Xamarin
    rm -rf ~/.local/share/Xamarin
    
    sudo rm -f /private/var/db/receipts/com.xamarin.*
    sudo rm -f /private/var/db/receipts/xamarin.*
     
    # Uninstall Mono MDK
    # You will also want to make sure that there are no other dependencies on Mono
    sudo rm -rf /Library/Frameworks/Mono.framework
    sudo pkgutil --forget com.xamarin.mono-MDK.pkg
    rm -rf ~/.local/share/MonoForAndroid
    rm -rf ~/.config/.mono
    rm -rf ~/.android
     
    # Uninstall Xamarin.Android
    sudo rm -rf /Developer/MonoDroid
    sudo rm -rf /Library/Frameworks/Xamarin.Android.framework
    sudo pkgutil --forget com.xamarin.android.pkg
    rm -rf ~/Library/MonoAndroid
     
    # Uninstall Xamarin.iOS
    rm -rf ~/Library/MonoTouch
    sudo rm -rf /Library/Frameworks/Xamarin.iOS.framework
    sudo rm -rf /Developer/MonoTouch
    sudo rm -rf /Developer/MonoAndroid
    sudo pkgutil --forget com.xamarin.monotouch.pkg
    sudo pkgutil --forget com.xamarin.xamarin-ios-build-host.pkg
     
    ## To Uninstall the Xamarin Build Host
     sudo rm -rf "/Applications/Xamarin.iOS Build Host.app"
     
    ## To unload and remove the Xamarin Build Host launchd job
     launchctl unload /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
    sudo rm -f /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
     
    # Uninstall Xamarin.Mac
    sudo rm -rf /Library/Frameworks/Xamarin.Mac.framework
    rm -rf ~/Library/Xamarin.Mac
    sudo rm -rf /Library/Frameworks/Xamarin.Interactive.framework
    
    # Uninstall Xamarin Installer
    rm -rf ~/Library/Caches/XamarinInstaller/
    rm -rf ~/Library/Logs/XamarinInstaller/
    rm -rf ~/Library/Preferences/Xamarin/
    
    # Uninstall Microsoft NuGet
    rm -rf ~/.local/share/NuGet
    rm -rf ~/.config/NuGet
    rm -rf ~/.config/.NuGet
    rm -rf ~/.NuGet
    
    # Uninstall traces of visual studio code
    rm -rf ~/.vscode


Thursday, March 30, 2017 5:34 AM

Hi lvanquo,

Welcome to the MSDN forum.

Thanks for your sharing, it will help other community members to remove the remaining VS components on Mac computer.

Best regards,

Sara

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].