Content marketer
12 minutes to read

xcode icon

If you want to remove XCode from your Mac, you should know that its uninstallation differs from simple application removal. This is especially important because if you try to reinstall XCode the remaining service files of the app might block you. In this article, we will share the correct way to uninstall XCode on Mac with Terminal.  But first, let me explain why you can’t delete the app in the usual way.


  1. How to delete XCode manually.
  2. How to remove XCode with software uninstaller.

What is XCode?

The XCode package is a native development tool for Mac and iOS operating systems. It includes a number of useful utilities that are required for application development processes. Using Xcode for an extended period of time creates gigabytes of cached data. And the most unpleasant thing about it is that even after work completion, caches still eat up significant disk space.

How to delete XCode manually

Removal of  XCode v4.3 and upper versions is much easier than for earlier versions. But don’t worry, we will show you the uninstalling steps for all the versions.

Uninstall XCode 3

  1. Launch Terminal.
  2. Type the next command:
    sudo /Developer/Library/uninstall-devtools –mode=all
  3.   Enter your password.

terminal window showing xcode uninstalling commandUninstall XCode 4

  1. Move XCode to the Trash.
  2. Go to ~Library folder and from there remove all XCode related files.
  3. Check the next subfolders, which may keep XCode’s service files:

    • ~/Library/Application Scripts/
    • ~/Library/Preferences/
    • ~/Library/Containers/
    • ~/Library/Developer/
    • ~/Library/Saved Application State/

    Xcode junk files in Finder
    *Please, be careful with the Library folder. Do not delete any important files other than XCode files.

  4. Empty the Trash.

How to Remove XCode with software uninstaller

You can use the second method of uninstalling any program on Mac. However, instead of wasting time browsing in the Library folder, we would recommend that you use a special uninstaller App Cleaner & Uninstaller Pro. This app provides options for uninstalling programs completely, find leftovers of already deleted apps and manage extensions.

  1. Download the App Cleaner & Uninstaller. 
  2. Scan the relevant programs installed on your Mac.
  3. Select XCode and click Remove.
  4. uninstalling xcode with App Cleaner

Articles you may be interested in: