How to uninstall older version of Xcode

Rickie picture Rickie · Apr 6, 2012 · Viewed 27.4k times · Source

I have Xcode 4.0.2 and 3.2.5 both installed on my macbook. How do I uninstall the older version without uninstalling the newer version?

Answer

Demz picture Demz · Apr 6, 2012
sudo <Xcode>/Library/uninstall-devtools --mode=all

where <Xcode> is the path to the Developer folder (the one with 'Xcode 3.2.5' in it) This won't affect the 'Xcode 4.0.2' installation since it's in a completely different folder.