---
title: "How to uninstall Xcode on Mac completely"
description: "Uninstall Xcode on Mac completely: delete simulator runtimes first, then remove the app, DerivedData, DeviceSupport, simulators and caches. Keep your Archives."
url: https://tidymac.space/uninstall/xcode/
updated: 2026-10-08
---

[Home](/) [Uninstall apps](/uninstall/) Xcode

# How to uninstall Xcode on Mac completely

Dragging Xcode to the Trash leaves its data behind. Here’s every place it keeps files, which ones matter, and how to remove the rest.

Bundle ID: `com.apple.dt.Xcode`Updated October 8, 2026By the Tidy Mac team

Short answer

Delete simulator runtimes first with xcrun simctl runtime delete, while Xcode is still installed. Then drag Xcode from Applications to the Trash and remove ~/Library/Developer/Xcode (DerivedData, iOS DeviceSupport, Archives), ~/Library/Developer/CoreSimulator, ~/Library/Caches/com.apple.dt.Xcode and its preferences. Check Archives before deleting; they hold the symbols for your shipped apps.

**Skip the manual steps.** Tidy Mac finds this and every other hidden space hog on your Mac in under a minute.

[Download free](/download/TidyMac.dmg)[Buy · $9.99 $29](/buy/)

**Before you start.** Archives contain the debug symbols (dSYMs) you need to read crash reports from apps you shipped. Keep the ones for versions still in use. UserData holds your key bindings, code snippets and themes.

## Uninstall Xcode step by step

1.  List simulator runtimes with xcrun simctl runtime list, and remove each with xcrun simctl runtime delete followed by its identifier.
2.  Copy anything you want to keep from ~/Library/Developer/Xcode/Archives and ~/Library/Developer/Xcode/UserData.
3.  Quit Xcode and Simulator.
4.  Drag Xcode from Applications to the Trash.
5.  Move ~/Library/Developer/Xcode and ~/Library/Developer/CoreSimulator to the Trash.
6.  Move ~/Library/Caches/com.apple.dt.Xcode and ~/Library/Preferences/com.apple.dt.Xcode.plist to the Trash.
7.  Empty the Trash.

## Where Xcode leaves files

Location

What it is

After uninstalling

~/Library/Developer/Xcode/DerivedData

Build files for every project you built

Safe

~/Library/Developer/Xcode/iOS DeviceSupport

Debug symbols copied from each device you connected

Safe

~/Library/Developer/Xcode/Archives

Archived builds with dSYMs for crash reports

Check first

~/Library/Developer/Xcode/UserData

Your key bindings, code snippets and themes

Check first

~/Library/Developer/CoreSimulator

Simulator devices and their data

Check first

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

Cache

Safe

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

Preferences

Safe

In Finder choose **Go › Go to Folder** (Shift-Command-G) and paste a path to open it. **Safe** means nothing you made is inside; **Check first** means it may hold the only copy of something. To see how much space they use, run this read-only command in Terminal:

```
du -sh ~/Library/Developer/Xcode/DerivedData ~/Library/Developer/Xcode/iOS\ DeviceSupport ~/Library/Developer/Xcode/Archives ~/Library/Developer/Xcode/UserData ~/Library/Developer/CoreSimulator ~/Library/Caches/com.apple.dt.Xcode ~/Library/Preferences/com.apple.dt.Xcode.plist 2>/dev/null
```

## Delete simulator runtimes before Xcode

Recent versions of Xcode store simulator runtimes as separate disk images managed by `xcrun simctl`. Once Xcode is gone, the easy way to remove them goes with it. Remove them first:

```
xcrun simctl runtime list
xcrun simctl runtime delete <identifier>
xcrun simctl delete unavailable
```

[More about simulators](/learn/xcode-simulators-coresimulator/)

## DerivedData and DeviceSupport are pure cache

Both are rebuilt when needed. If you’re keeping Xcode and just want space, these two are the safest wins. [DerivedData](/learn/xcode-deriveddata/) · [iOS DeviceSupport](/learn/xcode-ios-devicesupport/)

## Keep the Command Line Tools if you use them

`/Library/Developer/CommandLineTools` is a separate install that provides `git`, `clang` and `make` without Xcode. Homebrew and many developer tools need it, so leave it unless you’re sure.

## With Tidy Mac

Tidy Mac doesn’t uninstall Apple apps, Xcode included, so follow the steps above. Its Clean screen does cover the space Xcode leaves around: DerivedData and simulator caches are Safe to clear, device support is Worth a look, and archives and simulator devices are Kept for you to handle. Whatever Tidy Mac removes goes to the Trash first, with Undo in History.

![](/img/brand/tidy-128.png)

### Uninstall apps and their leftovers in one step

See every part of your storage explained, and clear junk to the Trash with Undo. $9.99 $29 once, 2 Macs.

[Download](/download/TidyMac.dmg) [Buy Tidy Mac · $9.99 $29](/buy/)

## Frequently asked questions

Does dragging Xcode to the Trash uninstall it completely?

No. It removes the app, but Xcode leaves 7 kinds of files behind in your Library and elsewhere: build files for every project you built; debug symbols copied from each device you connected; archived builds with dsyms for crash reports. The steps above remove them.

What is Xcode’s bundle ID on Mac?

`com.apple.dt.Xcode`. Most of its leftover files and folders are named after it, which is how you (and Tidy Mac) can tell they belong to Xcode.

Can I reinstall Xcode later?

Yes. Download it again from Apple. Anything stored in your account online comes back when you sign in; local-only data you removed does not.

## Keep reading

[Uninstall any app completelyAll apps](/uninstall/)[What is DerivedData?Xcode](/folders/deriveddata/)[Xcode DerivedDataLibrary](/learn/xcode-deriveddata/)[Uninstall Spotifycom.spotify.client](/uninstall/spotify/)[Uninstall Slackcom.tinyspeck.slackmacgap](/uninstall/slack/)[Uninstall Android Studiocom.google.android.studio](/uninstall/android-studio/)

Share:[X](https://x.com/intent/post?text=How%20to%20uninstall%20Xcode%20on%20Mac%20completely&url=https%3A%2F%2Ftidymac.space%2Funinstall%2Fxcode%2F)[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Ftidymac.space%2Funinstall%2Fxcode%2F&title=How%20to%20uninstall%20Xcode%20on%20Mac%20completely)[Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Ftidymac.space%2Funinstall%2Fxcode%2F&t=How%20to%20uninstall%20Xcode%20on%20Mac%20completely)[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Ftidymac.space%2Funinstall%2Fxcode%2F)

#### On this page

[Steps](#steps)[Leftover files](#leftovers)[Delete simulator runtimes before Xcode](#delete-simulator-runtimes-before-xcode)[DerivedData and DeviceSupport are pure cache](#deriveddata-and-devicesupport-are-pure-cache)[Keep the Command Line Tools if you use them](#keep-the-command-line-tools-if-you-use-them)[With Tidy Mac](#tidymac)[FAQ](#faq)

**Tidy Mac**

See this on your own Mac in under a minute. $9.99 $29 once, 2 Macs.

[Download](/download/TidyMac.dmg)
