Developer cleanup
Delete Xcode DerivedData. And every cache your tools keep.
Developer Macs fill up fastest. Roomy finds Xcode build data, device support files, simulator caches and more than 25 package manager and editor caches, and tells you which are safe to clear.
Free scan No account needed macOS 14 Sonoma or later Apple silicon and Intel
Roomy is a paid app. The free version scans everything and cleans up to 500 MB.
Illustration with example data.
Every location, in one list
Here is exactly where Roomy looks and how each item is rated. DerivedData and device support get one row per project or OS version, so you can keep the ones you still use.
Xcode
-
Safe
DerivedData (one row per project)
~/Library/Developer/Xcode/DerivedData -
Review
Device support (per OS version)
~/Library/Developer/Xcode/iOS DeviceSupport, watchOS, tvOS, visionOS, macOS -
Safe
Xcode cache
~/Library/Caches/com.apple.dt.Xcode -
Safe
SwiftUI Previews
~/Library/Developer/Xcode/UserData/Previews -
Review
Xcode Products
~/Library/Developer/Xcode/Products -
Caution
Archives (moved to the Trash)
~/Library/Developer/Xcode/Archives
Simulators
-
Safe
Simulator caches
~/Library/Developer/CoreSimulator/Caches
JavaScript
-
Safe
npm cache
~/.npm/_cacache -
Safe
Yarn cache
~/Library/Caches/Yarn -
Review
pnpm store
~/Library/pnpm/store -
Safe
Bun cache
~/.bun/install/cache -
Safe
Deno cache
~/Library/Caches/deno -
Safe
node-gyp headers
~/Library/Caches/node-gyp -
Safe
TypeScript cache
~/Library/Caches/typescript -
Review
Playwright browsers
~/Library/Caches/ms-playwright -
Review
Cypress binaries
~/Library/Caches/Cypress -
Safe
Electron downloads
~/Library/Caches/electron, electron-builder
Python
-
Safe
pip cache
~/Library/Caches/pip -
Safe
Poetry cache
~/Library/Caches/pypoetry -
Safe
uv cache
~/.cache/uv
Swift, iOS and Homebrew
-
Safe
CocoaPods cache
~/Library/Caches/CocoaPods -
Safe
Carthage cache
~/Library/Caches/org.carthage.CarthageKit -
Safe
Swift Package Manager cache
~/Library/Caches/org.swift.swiftpm -
Safe
Homebrew downloads
~/Library/Caches/Homebrew
Java and Android
-
Review
Gradle caches
~/.gradle/caches -
Review
Maven repository
~/.m2/repository -
Safe
Android SDK cache
~/.android/cache
Rust and Go
-
Safe
Cargo registry
~/.cargo/registry/cache, ~/.cargo/registry/src -
Safe
Go build cache
~/Library/Caches/go-build -
Review
Go module cache
~/go/pkg/mod
Editors
-
Review
JetBrains caches
~/Library/Caches/JetBrains -
Safe
VS Code caches
~/Library/Application Support/Code/Cache, CachedData, CachedExtensionVSIXs -
Safe
Cursor caches
~/Library/Application Support/Cursor/Cache, CachedData, CachedExtensionVSIXs
Never touched
Your code stays exactly where it is.
Developer cleanup removes downloads and build output, never the things you wrote or configured.
- Projects and source code. Including node_modules and Pods folders inside them.
- Installed tools. Homebrew formulae and casks, Python virtual environments, Rust toolchains, Android SDKs and emulators.
- Simulators and their apps. Only runtime caches are cleaned.
- Editor settings. VS Code, Cursor and JetBrains extensions, settings and workspaces stay.
- Shipped builds. Xcode archives are Caution and only ever go to the Trash.
How to free up space Xcode is using
Xcode is often the biggest single user of disk space on a developer’s Mac. Three folders do most of the damage:
- DerivedData grows with every project you build, including ones you deleted long ago. A single project can take hundreds of megabytes or several gigabytes.
- Device support keeps debug symbols for every iOS version of every device you have connected, a few gigabytes each.
- Simulators pile up as you install new runtimes. Old ones stay after Xcode stops supporting them.
- Quit Xcode, then open Roomy and click Developer in the sidebar.
- Under Xcode, tick the DerivedData rows for projects you aren’t working on, or click Select Safe Only.
- Review the Device support rows and keep the OS versions your test devices still run.
- Click Clean Selected… and confirm.
- In Optimize, run Delete unavailable simulators to remove simulators your Xcode no longer supports.
How to clear the npm cache on a Mac
The npm cache lives in ~/.npm/_cacache and keeps every package version you have ever installed. In Roomy, it appears under JavaScript with its size; select it and clean. Yarn, pnpm, Bun and Deno caches are listed right next to it, so you can clear them together. Your next npm install downloads what it needs.
Developer cleanup questions
Is it safe to delete Xcode DerivedData?
Yes. DerivedData holds build products, indexes and logs that Xcode creates from your source code. Your project and code aren’t in it. Xcode rebuilds what it needs on the next build, which takes longer once. Quit Xcode first for the cleanest result.
Will clearing the npm cache break my projects?
No. The npm cache is a download cache in ~/.npm. Your projects and their node_modules folders aren’t touched, and npm downloads packages again the next time it needs them. The same goes for Yarn, Bun, pip, Poetry, uv, CocoaPods and Cargo.
Why are some developer items marked Review?
Some caches take a long time or a lot of bandwidth to get back: device support files (copied again when you reconnect a device), the pnpm store, Gradle and Maven caches, Playwright and Cypress downloads, the Go module cache and JetBrains indexes. They are never selected automatically.
What happens to Xcode archives?
Archives are marked Caution and go to the Trash, never straight to deletion. Keep archives of builds you shipped: you need their debug symbols to read crash reports from users.
Does it delete node_modules folders or simulators?
No. node_modules folders inside your projects stay. Simulators and the apps installed on them stay too; only simulator caches are cleaned. To remove simulators for iOS versions your Xcode no longer supports, use Delete unavailable simulators in Optimize.
Can I do this in Terminal instead?
Of course. Each tool has its own command, such as npm cache clean --force or brew cleanup. Roomy is useful when you want to see the size of every cache in one list, with ratings and one confirmation, instead of remembering a dozen commands.
More ways to free up space on your Mac
- System Junk Cleaner Clear app caches, logs, crash reports and temporary files that pile up on your Mac.
- App Uninstaller Remove Mac apps completely, including the caches and helpers they leave behind.
- Duplicate File Finder Find true duplicate files on your Mac by comparing their contents.
- Large File Finder Spot the biggest forgotten files in your home folder.
- Optimize & Maintenance Free memory, flush DNS, thin Time Machine snapshots and review login helpers.
From the help center
- What Roomy removes Every location Roomy cleans, and what it never touches.
- Safe, Review and Caution How Roomy rates every item and what is selected for you.
- Undo a clean Put files back from the Trash and see the Activity Log.
- Troubleshooting Fixes for activation errors, items that won't remove and more.
Reclaim your build machine.
Start with a free scan.
Download Roomy, see exactly what is taking up space, and clean up to 500 MB for free. Nothing is removed until you say so.
Version 1.0.0 5 MB macOS 14 Sonoma or later Apple silicon and Intel