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

  • DerivedData (one row per project)

    ~/Library/Developer/Xcode/DerivedData

    Safe
  • Device support (per OS version)

    ~/Library/Developer/Xcode/iOS DeviceSupport, watchOS, tvOS, visionOS, macOS

    Review
  • Xcode cache

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

    Safe
  • SwiftUI Previews

    ~/Library/Developer/Xcode/UserData/Previews

    Safe
  • Xcode Products

    ~/Library/Developer/Xcode/Products

    Review
  • Archives (moved to the Trash)

    ~/Library/Developer/Xcode/Archives

    Caution

Simulators

  • Simulator caches

    ~/Library/Developer/CoreSimulator/Caches

    Safe

JavaScript

  • npm cache

    ~/.npm/_cacache

    Safe
  • Yarn cache

    ~/Library/Caches/Yarn

    Safe
  • pnpm store

    ~/Library/pnpm/store

    Review
  • 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

    Safe
  • Playwright browsers

    ~/Library/Caches/ms-playwright

    Review
  • Cypress binaries

    ~/Library/Caches/Cypress

    Review
  • Electron downloads

    ~/Library/Caches/electron, electron-builder

    Safe

Python

  • pip cache

    ~/Library/Caches/pip

    Safe
  • Poetry cache

    ~/Library/Caches/pypoetry

    Safe
  • uv cache

    ~/.cache/uv

    Safe

Swift, iOS and Homebrew

  • 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

    Safe

Java and Android

  • Gradle caches

    ~/.gradle/caches

    Review
  • Maven repository

    ~/.m2/repository

    Review
  • Android SDK cache

    ~/.android/cache

    Safe

Rust and Go

  • Cargo registry

    ~/.cargo/registry/cache, ~/.cargo/registry/src

    Safe
  • Go build cache

    ~/Library/Caches/go-build

    Safe
  • Go module cache

    ~/go/pkg/mod

    Review

Editors

  • JetBrains caches

    ~/Library/Caches/JetBrains

    Review
  • VS Code caches

    ~/Library/Application Support/Code/Cache, CachedData, CachedExtensionVSIXs

    Safe
  • Cursor caches

    ~/Library/Application Support/Cursor/Cache, CachedData, CachedExtensionVSIXs

    Safe

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.
  1. Quit Xcode, then open Roomy and click Developer in the sidebar.
  2. Under Xcode, tick the DerivedData rows for projects you aren’t working on, or click Select Safe Only.
  3. Review the Device support rows and keep the OS versions your test devices still run.
  4. Click Clean Selected… and confirm.
  5. 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.

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