How do I completely uninstall Xcode and Developer Tools?

**Sorry if this isn't the place to ask this, but I really didn't find a section dedicated to this, so I'm asking it here.**

I installed Xcode and the Mac developer tools from Apple's developer site page and I'm not going to use it (for the time being anyway). I dragged and dropped all of the files from the download into the trash and emptied it. Then, I went to Terminal, and typed in the following:

sudo /Developer/Library/uninstall-devtools –mode=all

It gave me a prompt to enter my password before continuing, entered my password, and then that was it! Question is, though, is this really it? Did I really get rid of Xcode and all of the developer stuff that came in the Mac Developer Tools download?

MacBook Pro, Mac OS X (10.5.7), 2.8 GHz Intel Core 2 Duo Processor, 4 GB 1067 MHz DDR3 Memory, 15.4" Display

Posted on May 21, 2009 7:22 PM

Reply
6 replies

May 21, 2009 7:32 PM in response to Technologeek KMJ

This is as good a place as any for your question:

From the XCode "About" file:
Uninstalling Xcode 3.0 Developer Tools
To uninstall Xcode developer tools on the boot volume along with the Xcode directory, from a Terminal
window type:
$ sudo <Xcode directory>/Library/uninstall-devtools --mode=all

You did not need to drag anything into the Trash. The script does everything.
But you did the correct thing. The password was because some of the tools are installed in the system and need your permission to remove them. That's normal.

May 21, 2009 7:42 PM in response to Technologeek KMJ

The only thing that I could find in utilities that started with "X" was something called "X11". Also, I had Xcode 3.1.2 installed, and at first I tried typing this command in Terminal:

$ sudo <Xcode>/Library/uninstall-devtools --mode=all

I got this from the "About Xcode 3.1.2" document from Apple's developer site, but it wouldn't work. Then I tried the code that I posted in my first post, and I guess it worked. I actually entered the code

sudo /Developer/Library/uninstall-devtools –mode=all

a few times (for closure) and the same thing happened every time: password to continue and, that's it! So I guess it worked. I actually got that code from a blog after googling "how to uninstall xcode 3.1.2 and developer tools"!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I completely uninstall Xcode and Developer Tools?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.