How to Uninstall Xcode on Mac

How to uninstall Xcode on Mac - app and leftover files removed
Uninstall Xcode on Mac guide

Xcode is one of the few apps where the app bundle is the smallest part. DerivedData, archives, iOS device support files and simulator runtimes routinely add 20 to 40 GB on a machine that has been building projects for a year. This guide covers how to uninstall Xcode on Mac and remove every file it leaves behind.

Short on space already? CleanMac removes apps and their leftover files in one pass — and shows you exactly what it will delete before anything is touched. Download free →

Below is the complete process, step by step: quitting the app properly, deleting it, clearing every folder it left behind, and confirming the space is actually back.

Why Dragging Xcode to the Trash Is Not Enough

Every build writes intermediate files into DerivedData, every archived release is stored under Archives, and every iOS version you connect a device to downloads its own support files. None of that lives inside Xcode.app, so removing the app leaves the bulk of the storage untouched.

Simulator runtimes are separate downloads of several gigabytes each, and old device support folders are never cleaned up automatically.

How Much Space Does Xcode Take on Your Mac?

Space use varies with how long the app has been installed and how heavily you use it. These are typical figures for a machine that has run Xcode for a year or more.

Location What it holds Typical size
Xcode.app The application bundle 10 – 20 GB
~/Library/Developer/Xcode/DerivedData Build intermediates and indexes 5 – 30 GB
~/Library/Developer/Xcode/Archives Archived builds 1 – 20 GB
~/Library/Developer/Xcode/iOS DeviceSupport Symbol files per iOS version 2 – 15 GB
~/Library/Developer/CoreSimulator Simulator runtimes and devices 5 – 25 GB

How to Uninstall Xcode on Mac Manually

Step 1: Quit Xcode Completely

Quit Xcode with Command + Q, then close the Simulator app if it is open. Check Activity Monitor for lingering SourceKit or ibuild processes before deleting the app.

Step 2: Move the App to the Trash

Open Finder → Applications, drag Xcode to the Trash, and confirm with your password or Touch ID. If the app lives in a subfolder, remove the whole folder when it belongs to the same package.

Step 3: Delete the Leftover Files

Open Finder, press Command + Shift + G, paste each path below, and move the matching item to the Trash. Some folders only exist if the app has been used recently, so a missing path is normal.

Path What to remove
~/Library/Developer/Xcode/DerivedData Build products and indexes
~/Library/Developer/Xcode/Archives Archived builds you shipped
~/Library/Developer/Xcode/iOS DeviceSupport Device symbol files
~/Library/Developer/CoreSimulator Simulator data
~/Library/Caches/com.apple.dt.Xcode Xcode cache
~/Library/Developer/Xcode/UserData Snippets and breakpoints

Step 4: Empty the Trash

Right-click the Trash in the Dock and choose Empty Trash. Disk space is only returned at this point — until then the files still occupy storage.

If you want to see the wider picture of what is filling your disk, read our guide on how to free up disk space on Mac.

How to Uninstall Xcode with CleanMac (One Click)

The manual route works, but it depends on you finding every path and not mistyping one. CleanMac does the same job in a single pass and lists what it found before removing anything.

Step 1: Download and open CleanMac

Download CleanMac and open it. It sits in the menu bar and needs no configuration.

Step 2: Choose Uninstaller in the sidebar

Click Uninstaller in the left sidebar. CleanMac scans every installed app and lists it with the app size and the size of its related files.

CleanMac Uninstaller selected in the sidebar
Choose Uninstaller in the CleanMac sidebar.

Step 3: Locate Xcode in the app list

Find Xcode in the list. CleanMac shows the app size plus the combined size of its leftover files, so you can see what the app really occupies before touching anything.

Step 4: Select Xcode and click Move to Trash

Tick the checkbox next to Xcode, then click Move to Trash at the bottom of the window. CleanMac shows the app and the related files it will remove, then deletes them together.

App ticked in CleanMac Uninstaller with the Move to Trash button
Select the app, then click Move to Trash.

CleanMac removes the app bundle, caches, preferences, saved state, logs, and container data together, so nothing is left scattered across your Library. The same process works for any other app — see how to uninstall apps on Mac completely.

What Happens to Your Data After Uninstalling Xcode?

Your source code, project folders and Git repositories are not touched. DerivedData and simulators are safe to delete and rebuild automatically. Archives are different: they contain the signed builds you shipped, so keep them if you may need to resubmit.

If you are unsure whether you still need something, check Apple’s developer documentation first: Xcode documentation.

Uninstall Xcode cleanly — including the leftovers.

CleanMac finds the app, its caches, and every hidden support file, then removes them together. Preview first, delete second.

Download CleanMac FreemacOS 13+ · Free

Summary

Xcode hides most of its bulk outside the application bundle, in build output, archives, and simulator runtimes. Together those folders can dwarf the editor itself, which is why a full removal often returns more space than people expect. The guide below covers quitting Xcode, clearing DerivedData, device support, and simulator files, and deciding which archives to keep. Source code in your project folders is never at risk.

Frequently Asked Questions

How much space will I free up by uninstalling Xcode?

Expect roughly 25 to 60 GB back from a complete removal, and more on a machine used for active development. DerivedData alone can reach 30 GB on a busy project, while extra simulator runtimes add 5 to 25 GB on top. Check both folders in Finder to see your own total.

Will I lose my settings or account data?

Your source code and project folders stay exactly where they are. Archives that hold signed builds are removed, though, so you cannot resubmit an old version to the store unless you archive it again. Copy any release you may need onto an external drive before starting.

Can I keep Xcode but clear the space?

Yes, deleting DerivedData and unused simulator runtimes is safe and frees most of the space without touching the app. Open Xcode, go to Settings, then Locations, and reveal the DerivedData folder from there. Old runtimes can be removed in the Platforms tab of the same window.

Where are my archived builds stored?

Signed release builds live in ~/Library/Developer/Xcode/Archives, sorted by the date they were created. Each archive carries its app binary and debug symbols, which is why they can be several hundred megabytes each. Copy the ones you still need to an external disk before running any cleanup.

Can I reinstall Xcode later?

Yes, the app is free from the App Store or the developer portal, and signing in restores your account and certificates. Command line tools may need to be reinstalled separately, and the first launch prompts for the additional components download. Expect a sizeable wait before the editor is usable again.