How to completely remove Xcode from a mac.

Xcode is a HUGE download and installation and can take up valuable space. If you’ve previously installed Xcode from a download instead of the Mac App Store, it’s time to do this and start fresh anyway. From the terminal: sudo /Developer/Library/uninstall-devtools –mode=all