The Staff Engineer Who Deleted Half the Codebase - And Got Promoted

The Staff Engineer Who Deleted Half the Codebase - And Got Promoted

The Problem That Nobody Wanted to Admit

Sarah Chen had been a Senior Engineer at a fast-growing fintech startup for three years when she was promoted to Staff Engineer. Her first major project in the new role wasn’t building something new - it was understanding why everything took so long to build.

The company had grown from 20 to 200 engineers in 18 months. What used to take days now took weeks. Simple feature requests disappeared into a black hole of dependencies, test failures, and integration headaches. Engineering velocity was in free fall, and leadership’s solution was to hire more engineers.

Sarah spent her first month as Staff Engineer doing something unusual: she read code. Not to fix bugs or add features, but to understand the system as a whole. What she discovered was shocking.

The Archaeology of Good Intentions

The codebase told a story of well-intentioned decisions that had ossified into architectural cement:

The codebase had grown to 2.3 million lines of code. But here’s what Sarah realized: most of it didn’t need to exist.

The One-Pager That Changed Everything

Sarah wrote a one-page document titled “The Complexity Tax.” It didn’t propose a solution - it quantified the problem in terms executives could understand:

Finding:

Root Cause: Unintentional complexity. We have built abstractions on top of abstractions, each solving a point-in-time problem, none ever removed.

Business Impact:

Recommendation: Before we add more engineers, we need to subtract unnecessary code.

The document landed with executive leadership on a Monday. By Wednesday, Sarah had approval for a six-month “subtraction initiative.”

The Deletion Strategy

Sarah knew that proposing to “delete half the codebase” would create panic. Instead, she framed it as surgical removal of complexity, using a clear methodology:

Phase 1: Catalog and Classify (Month 1)

Working with three senior engineers, Sarah created a comprehensive map:

The results:

Phase 2: Build Coalition (Month 2)

Sarah didn’t dictate what to delete. Instead, she:

Critical insight: Teams were eager to delete code - they just needed permission and a clear process.

Phase 3: Execute in Waves (Months 3-6)

Sarah organized deletion into themed sprints:

Wave 1: Consolidate Auth (Month 3)

Wave 2: Kill the Framework (Month 4)

Wave 3: Microservice Consolidation (Month 5)

Wave 4: Feature Flag & Experiment Cleanup (Month 6)

The Results That Mattered

By the end of six months:

Code Metrics:

Business Metrics:

Financial Impact:

The Lessons for Staff Engineers

1. Subtraction Is a Skill

Sarah’s promotion to Principal Engineer cited her “ability to see the system holistically and make bold architectural decisions.” But the real skill wasn’t technical - it was recognizing that the best solution was removal, not addition.

Takeaway: As a Staff Engineer, your job isn’t always to build. Sometimes it’s to unbuild.

2. Quantify in Business Terms

The one-pager that got executive buy-in didn’t talk about cyclomatic complexity or coupling metrics. It talked about money, time, and people.

Takeaway: Translate technical problems into business impact. Executives can’t approve what they don’t understand.

3. Build Coalition, Not Consensus

Sarah didn’t wait for everyone to agree. She:

Takeaway: You don’t need unanimous agreement. You need executive air cover and team champions.

4. Make Deletion Safe

Sarah’s deletion process included:

Takeaway: Teams fear deletion because it feels risky. Make it safe, and they’ll embrace it.

5. Organizational Design Follows Code

The microservice consolidation required reorganizing teams. Sarah worked with engineering leadership to:

Takeaway: You can’t fix architecture without addressing org structure (Conway’s Law is real).

The Broader Pattern: Technical Leadership as Constraint Removal

Sarah’s story illustrates a critical Staff Engineer skill that’s rarely discussed: constraint removal.

Most engineers are taught to solve problems by adding:

Staff Engineers solve problems by removing constraints:

This requires a different mindset:

How to Apply This in Your Context

If you’re a Staff Engineer (or aspiring to be), here’s how to identify subtraction opportunities:

Run a Complexity Audit

Quantify the Cost

Build Your Case

Execute Strategically

Change the Culture

The Counterintuitive Promotion Path

Sarah’s promotion to Principal Engineer came from deleting code, not writing it. This is counterintuitive to many engineers who equate impact with creation.

But at the Staff+ level, impact is measured differently:

Sometimes the answer is building something new. But often, it’s removing what shouldn’t be there.

Final Thought: The Courage to Subtract

It takes courage to propose deletion at scale. You’re implicitly saying “previous work was wrong” (even if it was right at the time). You’re risking breaking things. You’re going against the engineering instinct to build.

But as Sarah proved, the highest leverage work is often subtractive, not additive.

The codebase doesn’t need more features. It needs less complexity. The system doesn’t need more services. It needs clearer boundaries. The team doesn’t need more process. It needs fewer obstacles.

As a Staff Engineer, your job is to see what others miss - including what needs to be removed.

Discussion Question: What’s one thing in your codebase or organization that should be deleted? What’s stopping you from proposing it?