MacOS – How to manually uninstall the Developer Tools

macosxcode

I installed the Developer Tools way back in Tiger or Leopard and I'd like to uninstall them now. I have Xcode 4.0.2. How do I uninstall them manually?

Best Answer

Yes, simply run the following in Terminal:

sudo <Xcode>/Library/uninstall-devtools --mode=all

Where <Xcode> is the default installation of Xcode, typically:

sudo /Developer/Library/uninstall-devtools --mode=all