June 10, 2025

Three methods to uninstall Xcode from Mac completely

Maksym Sushchuk
Written by
Experienced tech writer with 15 years of translating complex Mac concepts into clear, user-friendly content.

Maksym Sushchuk

Alex Holovchenko
Approved by
The content has been reviewed and approved by our team member, an Apple Certified Support Professional, who provides technical support to Nektony’s users.

Alex Holovchenko

Share

If you’ve ever installed Xcode on your Mac, you know how things can get messy. I’ve personally run into trouble after updates, with old and new Xcode versions clashing or my projects suddenly failing to run.

Whether you want to install a fresh copy or simply clear out space, a complete uninstallation of Xcode helps you avoid both current glitches and hidden future headaches. I’ll show you three methods to do it.

Which Xcode removal method should you use?

There are three main ways to uninstall Xcode from your Mac. Each approach has its strengths and drawbacks, so choose the one that fits your comfort level and needs:

  • Manual removal gives you full control and transparency but it takes more time and effort.
  • Terminal commands are quick for experienced users, but mistakes can be irreversible.
  • App Cleaner & Uninstaller offers the easiest experience, automatically finding and deleting all traces of Xcode.

Here’s a quick comparison to help you decide:

Method Advantages Disadvantages Difficulty Speed Removal Thoroughness
Manual Removal Full control, thorough cleanup Time-consuming, requires Finder skills ★★★ ★☆☆
(slow)
★★★
(complete)
Terminal Commands Fast, very efficient Requires familiarity with Terminal ★★☆ ★★☆
(fast)
★★★
(complete)
App Cleaner Easiest, just a few clicks Requires extra software ★☆☆ ★★★
(fastest)
★★★
(complete)

Ready to dive in? Here’s how to manually remove Xcode and all its leftovers.

Manual method: How to uninstall Xcode completely from Mac

This step-by-step guide works for macOS 15.5 and Xcode 16.4.

the Xcode about screen in version 16.4

You’ll start by dragging Xcode to Trash, and then proceed to clearing all traces of Xcode out completely.

Step 1. Delete the main Xcode application

  1. Go to the Applications folder.
  2. Find Xcode.app and drag it to the Trash.
Xcode in Applications folder

Step 2. Remove user and project data

Note:

To quickly open any of the folders mentioned here in Finder, use Go > Go to Folder… (or press Cmd + Shift + G) and paste the path.

Head to the following folders:

  • ~/Library/Application Support/

    Copy

  • ~/Library/Developer/

    Copy

Xcode application support folder

These should contain the Xcode folder storing project data, build files, simulators, and more. Move the entire Xcode folders to the Trash.

Note:

If you ever stored your own Xcode projects in
~/Library/Developer/Xcode

Copy

, check this folder for anything important before deleting its contents.

Step 3. Clean up scripts and app data

Navigate to the following directories and delete the listed folders and files:

  • ~/Library/Application Scripts/com.apple.iphonesimulator.ShareExtension

    Copy

  • ~/Library/HTTPStorages/com.apple.dt.Xcode

    Copy

  • ~/Library/HTTPStorages/com.apple.dt.Xcode.binarycookies

    Copy

  • ~/Library/HTTPStorages/com.apple.dt.Xcode.sourcecontrol.Git

    Copy

These locations keep data for simulators and some Xcode cloud features.

Step 4. Remove recent documents and support lists

Find this file and delete:

~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.apple.dt.xcode.sfl3

Copy

It stores your recent Xcode documents list.

Step 5. Delete caches

Proceed to
~/Library/Caches/com.apple.dt.Xcode

Copy

. This is where Xcode keeps cached build data that can quickly add up in size.

Delete the entire folder.

Step 6. Clear simulator containers

Find and delete:

~/Library/Containers/com.apple.iphonesimulator.ShareExtension

Copy

This is used by the iPhone simulator for sharing and testing features.

Step 7. Remove preferences files

These plist files store settings for Xcode and related tools like FileMerge and SKAgent. Find and remove them:

  • /Library/Preferences/com.apple.dt.Xcode.plist

    Copy

  • ~/Library/Preferences/com.apple.FileMerge.plist

    Copy

  • ~/Library/Preferences/com.apple.dt.SKAgent.plist

    Copy

  • ~/Library/Preferences/com.apple.dt.Xcode.plist

    Copy

  • ~/Library/Preferences/com.apple.dt.xcodebuild.plist

    Copy

Step 8. Delete crash reports

Look for any files starting with Xcode_ and ending in .plist. in this folder and remove:

~/Library/Application Support/CrashReporter/

Copy

How to remove Xcode using Terminal command line

Prefer using the Terminal for a faster, more thorough cleanup? Here’s how to remove Xcode and all its leftovers in just a few commands.

  1. Run Terminal.
  2. Type the following command and hit Return to delete the main Xcode application:
    sudo rm -rf /Applications/Xcode.app

    Copy

    Note:

    You’ll need admin privileges, so have your password ready once the Terminal asks for it. You probably know it already, but you will see no output printed as you type in the password. This is the intended behavior in Terminal.

  3. Type in your admin password and hit Return. Command in Terminal After successfully removing the file, you will regain control over the Terminal without any output and be able to proceed to the next steps.
  4. Remove Xcode’s application support and developer data. Copy and paste each command and hit Return after each of them.
    • rm -rf ~/Library/Application\ Support/Xcode

      Copy

    • rm -rf ~/Library/Developer/Xcode

      Copy

  5. Delete simulator scripts and cloud data using these commands:.
    • rm -rf ~/Library/Application\ Scripts/com.apple.iphonesimulator.ShareExtension

      Copy

    • rm -rf ~/Library/HTTPStorages/com.apple.dt.Xcode

      Copy

    • rm -f ~/Library/HTTPStorages/com.apple.dt.Xcode.binarycookies

      Copy

    • rm -rf ~/Library/HTTPStorages/com.apple.dt.Xcode.sourcecontrol.Git

      Copy

  6. Remove recent document lists:.
    • rm -f ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.apple.dt.xcode.sfl3

      Copy

  7. Delete Xcode caches:.
    • rm -rf ~/Library/Caches/com.apple.dt.Xcode

      Copy

  8. Remove simulator containers:.
    • rm -rf ~/Library/Containers/com.apple.iphonesimulator.ShareExtension

      Copy

  9. Delete preferences and settings:.
    • sudo rm -f /Library/Preferences/com.apple.dt.Xcode.plist

      Copy

    • rm -f ~/Library/Preferences/com.apple.FileMerge.plist

      Copy

    • rm -f ~/Library/Preferences/com.apple.dt.SKAgent.plist

      Copy

    • rm -f ~/Library/Preferences/com.apple.dt.Xcode.plist

      Copy

    • rm -f ~/Library/Preferences/com.apple.dt.xcodebuild.plist

      Copy

  10. Remove crash reports:.
    • rm -f ~/Library/Application\ Support/CrashReporter/Xcode_*.plist

      Copy

Important note!

Files deleted in this way can’t be recovered

How to remove Xcode using App Cleaner & Uninstaller

If you prefer an easy, visual solution, you can remove Xcode and all its leftover files in just a few clicks with App Cleaner & Uninstaller. This is the fastest and safest way – no need to dig through folders or use Terminal commands.

Here’s how:

  1. Open App Cleaner & Uninstaller.
  2. Find Xcode in the list of applications. You can use the search bar or scroll to locate Xcode.
  3. Select Xcode. In the Expert mode, the app will automatically show all associated files, such as project folders, caches, preferences, simulators, and more.
  4. Click the Remove button.
  5. Confirm your choice. App Cleaner & Uninstaller will move Xcode and all its leftovers to the Trash. Search for Xcode in App Cleaner & Uninstaller
  6. Empty your Trash to finalize the process and free up disk space.

Note: If you have already trashed Xcode and want only to remove its leftovers, head to the Remaining Files tab in App Cleaner & Uninstaller. There, enter Xcode in the Search bar, and you’ll have a list of files you can safely remove.

Xcode leftovers in the Remaining Files tab

How Xcode’s file structure has evolved over time

Uninstalling Xcode isn’t as straightforward as dragging the app to the Trash. Over the years, Apple’s development environment has undergone huge changes in how it stores files and leaves behind various components that can clutter your system.

Legacy versions: The /Developer directory era

In earlier macOS versions (pre-2012), Xcode installed components in the /Developer directory at the root of your system. This directory housed essential tools, SDKs, and documentation. To uninstall Xcode during this period, Apple provided a script located at
/Developer/Library/uninstall-devtools

Copy

, which needed to be executed via Terminal.

Modern Xcode: Self-contained bundles with residual files

With the release of Xcode 4 and subsequent versions, Apple transitioned to a self-contained application model. Xcode is now primarily located in the
/Applications/Xcode.app

Copy

bundle. However, despite this consolidation, the app still generates and stores various files across your system.

These files contain build data, device support files, simulator data, and other resources that can accumulate over time. Even after deleting the main Xcode application, these files often remain, consuming significant disk space.

The problem of multiple Xcode versions

Developers frequently install multiple Xcode versions, especially beta releases, to test new features or ensure the compatibility of their projects. However, this practice can lead to Xcode file conflicts.

For instance, installing a beta version alongside a previous, public version has been reported to cause issues like broken simulators and malfunctioning GPX file loading in the older version. These problems arise because newer Xcode installations can overwrite shared resources and lead to compatibility issues.

The need for a thorough uninstallation

Given the dispersed nature of Xcode’s files and the potential for version conflicts, a comprehensive uninstallation is crucial. Simply deleting the application bundle doesn’t remove associated files and settings.

A thorough removal ensures a clean environment and paves the way for a fresh and trouble-free Xcode installation.

Personal note: Use one Xcode per machine

Over the past 15 years, I’ve uninstalled Xcode more times than I can count, usually after something broke or a beta update went sideways. And not once did just dragging the app to the Trash actually do the job. Every single time, stubborn leftovers were hiding out somewhere on my Mac and causing all kinds of trouble.

As much as I enjoy testing the latest Xcode releases, I’ve learned the hard way that when you’re working on commercial projects, it’s best to keep all experiments on a separate or virtual machine. Yes, there is this XcodesOrg project on Github to juggle multiple Xcode versions, but trust me: your nerves (and your clients) will thank you for having one at a time.

For everyday peace of mind, stick to a single, stable version of Xcode on your main Mac. It keeps things running smoothly and makes the uninstallation process a whole lot simpler.

Frequently asked questions

How do I get rid of Xcode junk, delete Xcode app data, or “clean” my Xcode iOS setup?

All of these tasks mean removing leftover files, caches, and settings related to Xcode. The step-by-step methods in this guide will help you remove all “junk” files, app data, build artifacts, and simulator clutter for a truly fresh start.

Will uninstalling Xcode delete my personal projects?

No, unless you store your projects inside Xcode’s support folders and delete them during cleanup. Always double-check folders like
~/Library/Developer/Xcode

Copy

or your Documents folder before removing anything.

Is it safe to remove all the files and folders listed in this guide?

Yes, as long as you only delete the items specified here. These are related to Xcode and its components. Still, it’s wise to review the contents before deleting, especially if you have custom scripts or device profiles you may need later.

Why do I still see “Xcode” in Spotlight or other apps after uninstalling?

This usually happens if Spotlight hasn’t reindexed your Mac yet, or if leftover support files remain. Try restarting your Mac and emptying the Trash. If the problem persists, check again for any remaining Xcode files using the steps above.

Can I reinstall Xcode from the App Store after removing it?

Absolutely! Once you’ve cleaned up the old version, just head to the Mac App Store, search for Xcode, and click Install.

You’ll get the latest stable release (in June 2025, it’s Xcode 16.4).

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top