Removing Xcode and Developer?

Discussion in 'macOS' started by safetyobc, Nov 11, 2011.

  1. safetyobc macrumors 6502

    safetyobc

    Joined:
    Sep 6, 2007
    Location:
    Arkansas
    #1
    Hello,

    I would like to remove XCode and the developer files from my computer. I don't use them and could use the free space. I'm assuming it won't hurt anything to remove these files? Also, what's the best way to do this.

    Thanks
     
  2. talmy macrumors 601

    talmy

    Joined:
    Oct 26, 2009
    Location:
    Oregon
    #2
    Go to the /Developer folder and read the file About Xcode.pdf. It has the full instructions on how to remove Xcode.
     
  3. safetyobc thread starter macrumors 6502

    safetyobc

    Joined:
    Sep 6, 2007
    Location:
    Arkansas
    #3
    Thanks.

    I also have a folder called developer and developer old. Will those instructions to remove them be there as well?
     
  4. talmy macrumors 601

    talmy

    Joined:
    Oct 26, 2009
    Location:
    Oregon
    #4
    You get developer-old when you install the new xcode 4 and xcode 3 is still present. Check for removal instructions in the PDF that should be there as well.
     
  5. safetyobc thread starter macrumors 6502

    safetyobc

    Joined:
    Sep 6, 2007
    Location:
    Arkansas
    #5
    Umm, I googled this and found a terminal command that erased the developer files. So I can't access the .pdf noW
     
  6. talmy macrumors 601

    talmy

    Joined:
    Oct 26, 2009
    Location:
    Oregon
    #6
    I believe you can just delete that folder and it's contents, or you can do the same instructions:

    Uninstalling Xcode Developer Tools
    To uninstall Xcode developer tools on the boot volume along with the <Xcode> directory, from a Terminal window type:
    $ sudo <Xcode>/Library/uninstall-devtools --mode=all
    To remove the underlying developer content on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:
    $ sudo <Xcode>/Library/uninstall-devtools --mode=systemsupport
    To just remove the UNIX development support on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:
    $ sudo <Xcode>/Library/uninstall-devtools --mode=unixdev
    Finally, to just uninstall the <Xcode> directory you can simply drag it to the trash, or from a Terminal window type:
    $ sudo <Xcode>/Library/uninstall-devtools --mode=xcodedir
     
  7. Celeste6 macrumors newbie

    Celeste6

    Joined:
    Oct 27, 2015
    #7
    Did it in any way hurt your computer to delete the Xcode?
     
  8. safetyobc thread starter macrumors 6502

    safetyobc

    Joined:
    Sep 6, 2007
    Location:
    Arkansas
    #8
    No it didn't. Not that I could tell anyway. I've handed the laptop down to my oldest son who then handed down to my younger son. He plays Minecraft on it and does his school work with it almost daily.
     
  9. talmy macrumors 601

    talmy

    Joined:
    Oct 26, 2009
    Location:
    Oregon
    #9
    Wow, oldie but a goodie. Xcode is distributed differently these days -- all files are in the Xcode.app bundle in /Applications instead of being in /Developer. That terminal command won't do anything anymore. So now to remove Xcode just drag Xcode.app to the trash and empty the trash.
     
  10. davekro macrumors regular

    davekro

    Joined:
    Mar 31, 2011
    Location:
    No. Calif.
    #10
    After migrating from old OS's I am looking how to safely delete the Developer folder. Can I just drag the folder to trash?
    I have no Xcode App in Apps folder. There 'appears' (to my unknowing eye) to be nothing but junk in the Developer folder. The Folder path shows only folders for:
    Developer > Extras > Palettes > QTKit.palette > Contents >
    Contents folder has:
    Info.plist <?xml version="1.0" ...
    version.plist <?xml version="1.0" ...
    MacOS (folder) > QTKit 'exec' 8/26/09
    Resourses (folder) > English.lproj & palette.table & QTCaptureViewIcon.tiff & QTKitPalette_Prefix. &
    [well here's a screen shot...]
     

    Attached Files:

  11. talmy macrumors 601

    talmy

    Joined:
    Oct 26, 2009
    Location:
    Oregon
    #11
    You can safely delete /Developer if the instructions in post #6 don't work (note: "<xcode>" is "/Developer" in most cases.)
     
  12. davekro macrumors regular

    davekro

    Joined:
    Mar 31, 2011
    Location:
    No. Calif.
    #12
    Talmy,
    I don't know what the references found in Spotlight search are, but I can find no Xcode 'App'. Attached is the entire Xcode Spotlight search, but if you choose not to open it, the first hits are:
    xcode-select
    XcodePlugin.pbproj
    CocoaStaticLibrary.xcode (plus 11 other folders found)

    I obviously don't want to do anything in Terminal that I am unclear on. Even though I find no Xcode app, would your terminal command #(1) from your post #6 still clear out the junk found in Spotlight search and be a good thing to do? Or in my case, should I just trash the Developer folder and call it good (enough)?

    "Uninstalling Xcode Developer Tools
    To uninstall Xcode developer tools on the boot volume along with the <Xcode> directory, from a Terminal window type:
    (1) $ sudo <Xcode>/Library/uninstall-devtools --mode=all
    To remove the underlying developer content on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:
    (2) $ sudo <Xcode>/Library/uninstall-devtools --mode=systemsupport
    To just remove the UNIX development support on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:
    (3) $ sudo <Xcode>/Library/uninstall-devtools --mode=unixdev
    Finally, to just uninstall the <Xcode> directory you can simply drag it to the trash, or from a Terminal window type:
    (4) $ sudo <Xcode>/Library/uninstall-devtools --mode=xcodedir"

    Thanks for your help.
    Dave
     
  13. talmy macrumors 601

    talmy

    Joined:
    Oct 26, 2009
    Location:
    Oregon
    #13
    There's actually nothing in those instructions for deleting Xcode.app -- the instructions are for the older versions, like you have installed. Just deleting /Developer is really good enough.
     
  14. davekro macrumors regular

    davekro

    Joined:
    Mar 31, 2011
    Location:
    No. Calif.
    #14
    Talmy,
    I'll just delete the Developer folder then. Any reason for me to stay out of Terminal is a good thing! ;)
    Big thanks.
    Tally-Ho
     

Share This Page