- Go to your Applications folder.
- Open the Utilities folder.
- Run the Terminal application.
- Copy and paste the following line into the Terminal window:
sudo /Developer/Library/uninstall-devtools –mode=all
- Press Enter.
- You will need to enter your password and press Enter.
- It won’t show any characters when you type.
- If you do not have a password then set one first.
- Once it has finished (showing your computer name and username), you can Quit the Terminal.
Make sure to restart if you plan on installing Xcode again.