
I Mass-Deleted 40,000 Lines of Code. Here's the Playbook.
Last quarter I convinced my team to let me spend two weeks doing nothing but deleting code. No new features. No bug fixes. Just deletion. The results: build time dropped 35%. Test suite went from 14 minutes to 8. Bug reports in the following month fell by half. And three CVEs in unused dependencies disappeared because the dependencies disappeared. Here's exactly how I did it, what I deleted, and how I convinced my manager it was worth two weeks of "zero feature output." The Pitch That Worked I didn't say "let me clean up the codebase." That's how you get one day, grudgingly. I said: "We have 3 unpatched CVEs in dependencies used only by dead code. Our build is 35% slower than it needs to be. And every new hire spends their first week confused by systems we don't use anymore. I need two weeks to eliminate all of it." Security risk + measurable cost + onboarding pain. Three things managers care about. "Clean code" is not one of them. Day 1-3: The Audit Before deleting anything, I needed
Continue reading on Dev.to
Opens in a new tab

