This is more of a comment than an answer, but I don't want to clarify John-Eric's answer anymore:
... from the terminal window type:
$ sudo <Xcode>/Library/uninstall-devtools --mode=all
Enter this for sure (from the root of your volume), do not enter the directory and do not try:
$ cd /XCode4/Library $ sudo uninstall-devtools --mode=all
This will not work. Just FYI, it caught me ...
source share