Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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?

Thanks!

share|improve this question
add comment

1 Answer 1

up vote 8 down vote accepted

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

Yes.

If I can, what should I do?

Run:

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
2  
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
2  
No problem. Ian's have to stick together. :) –  Ian C. Apr 14 '12 at 17:07
add comment

Your Answer

 
discard

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.