惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
宝玉的分享
宝玉的分享
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
博客园 - 司徒正美
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - Franky
B
Blog
V
V2EX
J
Java Code Geeks
D
Docker
博客园 - 叶小钗
The Cloudflare Blog
量子位
博客园_首页
MongoDB | Blog
MongoDB | Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How I reclaimed 47GB on my MacBook by cleaning developer ...
pixent inter · 2026-05-23 · via DEV Community

pixent interactive

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.

So I started digging. What I found surprised me.

The culprits

Here's the breakdown of what was eating my storage:

node_modules — 18GB

Every 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.

The good news: they're completely safe to delete. npm install (or yarn, or pnpm) regenerates them instantly.

Unity Library folders — 14GB

If 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.

I found four old game jam projects I'd abandoned. Combined Library size: 14GB.

Xcode DerivedData — 9GB

Xcode 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.

Safe to delete via Xcode → Preferences → Locations → DerivedData → arrow button. Or just nuke the folder directly.

Python virtualenvs — 6GB

Every python -m venv or conda create leaves behind an isolated environment with its own Python installation and packages. I had virtualenvs from tutorial projects dating back to 2020.

The fix

I went through each category manually this time. It took about 40 minutes and recovered 47GB.

After doing this, I built a tool to make it automatic: PolySweeper. 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.

If you want to do it manually, here's the quick version:

# Find largest node_modules folders
find ~ -name "node_modules" -type d -prune | xargs du -sh | sort -hr | head -20

# Find Unity Library folders
find ~ -name "Library" -type d -path "*/Assets/../Library" | xargs du -sh 2>/dev/null

# Clear Xcode DerivedData
rm -rf ~/Library/Developer/Xcode/DerivedData

Enter fullscreen mode Exit fullscreen mode

Worth running even if you think your disk is fine. Most developers I know have 10–40GB hiding in these folders.


If you want the automated version: PolySweeper — macOS disk cleaner built specifically for developers. One-time $14.99.