Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

According to apple,

Xcode in the Mac App Store has been repackaged, and is now distributed as a stand-alone application.

Can I safely remove old versions of Xcode which are using a lot of space? They didn't get removed when I installed the latest version. If I can, what should I do? Which files should I remove or what program do I need to run to remove them?


share|improve this question
up vote 8 down vote accepted

Can I safely remove old versions of Xcode which are using a lot of space?


If I can, what should I do?


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

Where <Xcode> is usually /Developer but can sometimes be ~/Developer depending on whether you installed it with sudo privileges or not.

Once you've run that script you can just move /Developer or ~/Developer to the trash, you don't need it any more.

You can can get more details about uninstalling by reading the About Xcode.pdf document in your directory.

If you also have a /Developer-old directory you can just move that to the trash.

share|improve this answer
Would this leave gcc and other things necessary for compiling ruby and stuff like that? – Ian Apr 13 '12 at 21:08
You need to run the new Xcode 4.2.3 and then open the Preferences pane. Click on the 'Downloads' tab and select Command Line Tools from the list. Click the 'Install' button to install them. You'll get gcc and whatnot back. – Ian C. Apr 13 '12 at 21:33
Thanks man, I appreciate your help :) – Ian Apr 14 '12 at 14:50
No problem. Ian's have to stick together. :) – Ian C. Apr 14 '12 at 17:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.