{"slug": "how-i-reclaimed-47gb-on-my-macbook-by-cleaning-developer-project-junk", "title": "How I reclaimed 47GB on my MacBook by cleaning developer project junk", "summary": "The article describes how a developer reclaimed 47GB of storage on their 512GB MacBook by manually deleting accumulated project junk, including 18GB from `node_modules` folders, 14GB from Unity Library folders, 9GB from Xcode DerivedData, and 6GB from Python virtualenvs. The author notes these files are safe to delete as they regenerate automatically, and provides terminal commands for manual cleanup. After the manual process, the author created a paid tool called PolySweeper ($14.99) that automates scanning and deleting these developer-specific files while running fully offline.", "body_md": "Last week I ran out of disk space mid-deploy. That annoying \"Your startup disk is almost full\" notification. I had a 512GB MacBook and somehow had less than 8GB free.\n\nSo I started digging. What I found surprised me.\n\n**The culprits**\n\nHere's the breakdown of what was eating my storage:\n\n**node_modules — 18GB**\n\nEvery JavaScript project has one. They're never small. A typical React project pulls in 300–500MB of dependencies. I had projects from 2021 I'd completely forgotten about — each one with an intact node_modules folder taking up space.\n\nThe good news: they're completely safe to delete. `npm install`\n\n(or `yarn`\n\n, or `pnpm`\n\n) regenerates them instantly.\n\n**Unity Library folders — 14GB**\n\nIf you've ever used Unity — even just for a game jam or a tutorial — your project has a Library folder. Unity uses it as a local cache for imported assets. It regenerates automatically when you open the project.\n\nI found four old game jam projects I'd abandoned. Combined Library size: 14GB.\n\n**Xcode DerivedData — 9GB**\n\nXcode stores build artifacts, indexes, and intermediate files in ~/Library/Developer/Xcode/DerivedData. It grows silently over time. Mine had build caches from apps I no longer maintain.\n\nSafe to delete via Xcode → Preferences → Locations → DerivedData → arrow button. Or just nuke the folder directly.\n\n**Python virtualenvs — 6GB**\n\nEvery `python -m venv`\n\nor `conda create`\n\nleaves behind an isolated environment with its own Python installation and packages. I had virtualenvs from tutorial projects dating back to 2020.\n\n**The fix**\n\nI went through each category manually this time. It took about 40 minutes and recovered 47GB.\n\nAfter doing this, I built a tool to make it automatic: [PolySweeper](https://pixentinteractive.gumroad.com/l/nuppjv). It scans your Mac, finds all of these by category, shows the size, and lets you delete with a confirmation step. Runs fully offline — nothing leaves your machine.\n\nIf you want to do it manually, here's the quick version:\n\n```\n# Find largest node_modules folders\nfind ~ -name \"node_modules\" -type d -prune | xargs du -sh | sort -hr | head -20\n\n# Find Unity Library folders\nfind ~ -name \"Library\" -type d -path \"*/Assets/../Library\" | xargs du -sh 2>/dev/null\n\n# Clear Xcode DerivedData\nrm -rf ~/Library/Developer/Xcode/DerivedData\n```\n\nWorth running even if you think your disk is fine. Most developers I know have 10–40GB hiding in these folders.\n\n*If you want the automated version: PolySweeper — macOS disk cleaner built specifically for developers. One-time $14.99.*", "url": "https://wpnews.pro/news/how-i-reclaimed-47gb-on-my-macbook-by-cleaning-developer-project-junk", "canonical_source": "https://dev.to/pixent_interactive_7999b9/how-i-reclaimed-47gb-on-my-macbook-by-cleaning-developer-project-junk-2932", "published_at": "2026-05-23 10:05:39+00:00", "updated_at": "2026-05-23 10:34:02.024909+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["MacBook", "React", "Unity", "Xcode", "Python"], "alternates": {"html": "https://wpnews.pro/news/how-i-reclaimed-47gb-on-my-macbook-by-cleaning-developer-project-junk", "markdown": "https://wpnews.pro/news/how-i-reclaimed-47gb-on-my-macbook-by-cleaning-developer-project-junk.md", "text": "https://wpnews.pro/news/how-i-reclaimed-47gb-on-my-macbook-by-cleaning-developer-project-junk.txt", "jsonld": "https://wpnews.pro/news/how-i-reclaimed-47gb-on-my-macbook-by-cleaning-developer-project-junk.jsonld"}}