Developers: the folders quietly eating your Mac (and how to clear each one properly)

If you write code on a Mac, a big part of System Data is probably yours.

These are the usual suspects, and the right way to clear each:

1. Xcode build data (~/Library/Developer/Xcode/DerivedData). Safe to delete; Xcode rebuilds it on the next build.

2. Simulators and simulator runtimes. Often tens of GB. xcrun simctl delete unavailable removes simulators for iOS versions you no longer have.

3. node_modules in old projects. npm install brings it back when you need it.

4. Forgotten git worktrees, Claude Code's included. Remove them with git worktree remove, not by deleting the folder.

5. Docker's disk image. Don't delete the file; docker system prune removes stopped containers and unused images.

6. Homebrew. brew cleanup clears old versions and downloads.

Diskly finds all of these, shows their size, and explains each one, with a copy button for the right command where deleting the files isn't the right way.

What's the biggest dev folder you've found on your Mac?

4 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.