<p>I installed Mono on my iMac last night and I immidiately had a change of heart! I don't think Mono is ready for prime time. </p>

<p>The Mono website says to run the following script to uninstall:</p>

<pre><code>#!/bin/sh -x
#This script removes Mono from an OS X System.  It must be run as root
rm -r /Library/Frameworks/Mono.framework
rm -r /Library/Receipts/MonoFramework-SVN.pkg
cd /usr/bin
for i in `ls -al | grep Mono | awk '{print $9}'`; do
rm ${i}
done 
</code></pre>

<p>Has anyone had to uninstall Mono? Was it as straight forward as running the above script or do I have to do more? How messy was it? Any pointers are appreciated.</p>

[{'answer_id': 74919, 'author': 'Alex Fort', 'author_id': 12624, 'author_profile': 'https://Stackoverflow.com/users/12624', 'pm_score': 0, 'selected': False, 'text': "<p>Mono doesn't contain a lot of fluff, so just running those commands will be fine. It's as simple as deleting all the data folders, and the binaries.</p>\n"}, {'answer_id': 74934, 'author': 'Adrian Petrescu', 'author_id': 12171, 'author_profile': 'https://Stackoverflow.com/users/12171', 'pm_score': 5, 'selected': True, 'text': '<p>The above script simply deletes everything related to Mono on your system -- and since the developers wrote it, I\'m sure they didn\'t miss anything :) Unlike some other operating systems made by software companies that rhyme with "Macrosoft", uninstalling software in OS X is as simple as deleting the files, 99% of the time.. no registry or anything like that.</p>\n\n<p>So, long story short, yes, that script is probably the only thing you need to do.</p>\n'}, {'answer_id': 768240, 'author': 'joev', 'author_id': 3449, 'author_profile': 'https://Stackoverflow.com/users/3449', 'pm_score': 2, 'selected': False, 'text': '<p>To expand on feelingsofwhite.com\'s answer, the Mono installer for Mac OS puts the uninstall script in the /Library/Receipts directory, not in the installer image as it says in the Notes.rtf file.  The Receipts directory is what the Mac OS Installer.app uses to keep track of which packages were responsible for installing which files.  Usually, a list of these is kept in a .bom ("Bill of Materials") file, which can be explored with the lsbom command.</p>\n\n<p>In the case of Mono, they also add a whole bunch of links from your /usr/bin and man directories.  Their uninstall scripts finds these and removes them.  Since the uninstall script lives in a place the uninstaller deletes, you should probably copy the uninstall script somewhere else before running it:</p>\n\n<pre><code>cd\ncp /Library/Receipts/MonoFramework-2.4_7.macos10.novell.universal.pkg/Contents/Resources/uninstallMono.sh .\nsudo ./uninstallMono.sh\nrm uninstallMono.sh\n</code></pre>\n'}, {'answer_id': 4471531, 'author': 'Theseven7', 'author_id': 505479, 'author_profile': 'https://Stackoverflow.com/users/505479', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://dragthor.wordpress.com/2007/07/24/uninstall-mono-on-mac-os-x/" rel="nofollow">http://dragthor.wordpress.com/2007/07/24/uninstall-mono-on-mac-os-x/</a>\nWork for me, OSX, But I Use the uninstall script file (.sh) from the Mono Installer Package.</p>\n'}, {'answer_id': 6657711, 'author': 'Albireo', 'author_id': 91696, 'author_profile': 'https://Stackoverflow.com/users/91696', 'pm_score': 3, 'selected': False, 'text': '<p>Seems the uninstall script has been slightly modified as today (2011-07-12):</p>\n\n<pre><code>#!/bin/sh -x\n\n#This script removes Mono from an OS X System.  It must be run as root\n\nrm -r /Library/Frameworks/Mono.framework\n\nrm -r /Library/Receipts/MonoFramework-*\n\nfor dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do\n   (cd ${dir};\n    for i in `ls -al | grep /Library/Frameworks/Mono.framework/ | awk \'{print $9}\'`; do\n      rm ${i}\n    done);\ndone\n</code></pre>\n\n<p>You can find the current version <a href="http://www.mono-project.com/Mono:OSX#Uninstalling_Mono_on_Mac_OS_X" rel="nofollow noreferrer">here</a>.</p>\n\n<p>By the way: it\'s the same exact thing that runs the uninstaller <a href="https://stackoverflow.com/questions/74902/uninstall-mono-from-mac-os-x-v10-5-leopard/768240#768240">mentioned by joev</a> (although as <a href="https://stackoverflow.com/questions/74902/uninstall-mono-from-mac-os-x-v10-5-leopard/768240#comment-6661580">jochem noted</a> it is <em>not</em> located in the <code>/Library/Receipts</code>, it must be found in the installation package=.</p>\n'}, {'answer_id': 11478972, 'author': 'Oldfrith', 'author_id': 1524730, 'author_profile': 'https://Stackoverflow.com/users/1524730', 'pm_score': -1, 'selected': False, 'text': '<p>I just deleted the mono.frameworks folder. I got tired of answering "yes" billions of times...</p>\n'}, {'answer_id': 46015929, 'author': 'montrealist', 'author_id': 65232, 'author_profile': 'https://Stackoverflow.com/users/65232', 'pm_score': 3, 'selected': False, 'text': '<p>Year 2017 answer for those, like myself, looking at SE first and <a href="http://www.mono-project.com/docs/about-mono/supported-platforms/osx/#uninstalling-mono-on-mac-os-x" rel="noreferrer">official docs</a> later (FYI I know the question was for OS Leopard). Run these commands in the terminal:</p>\n\n<pre><code>sudo rm -rf /Library/Frameworks/Mono.framework\nsudo pkgutil --forget com.xamarin.mono-MDK.pkg\nsudo rm -rf /etc/paths.d/mono-commands\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/74902', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/877/']