GigapurgeGigapurge

Guides

Free up space on a developer Mac

Updated November 2026 · By Adebayo Shobaloju, developer of Gigapurge

DerivedData, simulators, Docker images, node_modules, and Homebrew caches are usually rebuildable. Remove what you can name, leave projects and volumes that hold real data, and empty the Trash only after a quick check.

What usually fills a developer Mac

Developer tools keep rebuildable caches next to real projects. The safe habit is: quit the tool, remove only folders you can name, confirm the project still opens, then empty the Trash. Space returns after Empty Trash — not when items first move there.

Xcode DerivedData

~/Library/Developer/Xcode/DerivedData holds build products and indexes. It is safe to remove when Xcode is quit. Xcode recreates what it needs on the next build.

  1. Quit Xcode.
  2. Finder → Go → Go to Folder… → paste ~/Library/Developer/Xcode/DerivedData.
  3. Move the folder’s contents (or the whole DerivedData folder) to the Trash.
  4. Open your project once. Expect a longer first build.
  5. Empty the Trash only after that check.

You can also clear DerivedData from Xcode: Settings → Locations → click the arrow beside Derived Data, then remove folders there.

Simulators and platforms

Unused iOS, watchOS, or visionOS simulators and platform support files can be large.

Note: Menu names change between Xcode versions. If you don’t see Platforms, search Xcode Settings for “Platforms” or “Simulators”.

Docker

Docker images, containers, and build cache grow quietly. Prefer Docker’s own prune over deleting Docker’s disk file by hand.

Note: Docker Desktop’s button names change between versions. The commands above work in every version. Don’t delete Docker.raw or Docker’s data directory unless Docker’s docs for your version say to reset.

node_modules

Each Node project can have a node_modules folder. It is safe to remove for a project you can reinstall.

  1. Confirm you have a lockfile (package-lock.json, pnpm-lock.yaml, or yarn.lock) or know the install command.
  2. Quit editors and dev servers using that project.
  3. Move that project’s node_modules to the Trash (not your whole project).
  4. Run npm ci, pnpm install, or yarn as appropriate.

Global npm/yarn caches are separate. Prefer the package manager’s cache-clean command when you mean the download cache, not a project.

Homebrew caches

  1. See what would be removed: brew cleanup --dry-run.
  2. Remove old versions and caches: brew cleanup.

That does not uninstall formulae you currently need. It clears outdated kegs and download caches Homebrew kept around.

What not to delete

Spotify cache expanded in Gigapurge, showing why it is safe, last used, and the folder path under Library/Caches.
Gigapurge shows why an item can move, when it was last used, and where it lives — before anything goes to the Trash.

Sources:

FAQ

Is it safe to delete Xcode DerivedData?

Usually yes, after quitting Xcode. DerivedData is rebuildable build and index data. The next build will be slower while Xcode recreates it. Do not delete your project folders or .xcworkspace files.

Will removing simulators delete my app source code?

No. Simulators are runtime devices and their data. Your project lives elsewhere. You can re-download platforms from Xcode.

Is brew cleanup safe?

brew cleanup removes old Homebrew package versions and download caches. Installed formulae you still use stay. Run brew cleanup --dry-run first if you want to see what would go.

Made by Supreme Information Security LLC

Nothing moves until you confirm, and what moves goes to the Trash.

support@gigapurge.com