Deprecating systems
Retire APIs, services and features deliberately, with clear timelines, usage data and help for the people who depend on them.
13 min readDeletion is a feature
Every system you run has a carrying cost: hosting, patching, on-call, security exposure and the cognitive load of knowing it exists. Organisations are good at launching and bad at retiring, so the estate grows until teams spend most of their time maintaining old things. Treat deprecation as planned work with an owner and a date. Google's engineering culture explicitly rewards removing systems, because each removal frees capacity for something new. Make a removal plan part of every launch plan, so ending a system is expected from day one.
Know who depends on it
You cannot deprecate what you cannot measure. Before announcing anything, instrument usage: requests per consumer (by API key, client ID or service identity), last-seen dates and data volumes. You will almost always discover consumers nobody knew about, such as a quarterly finance script or a partner integration. Hyrum's law warns that with enough users, every observable behaviour of your system, including bugs and timing, is depended on by somebody. Allow at least one full business cycle (often a quarter) of usage data before trusting it.
A deprecation playbook
Give consumers time, information and a clear path. For external APIs, signal deprecation in the protocol itself with Deprecation and Sunset HTTP headers so client tooling can warn developers.
- Announce: what is going, why, the replacement and the date (often 6-12 months for external APIs)
- Provide a migration guide and, ideally, tooling or code changes
- Freeze: no new consumers, no new features
- Nudge: direct outreach to the top consumers, dashboards of remaining usage
- Brownouts: scheduled short outages before the final date to flush out unknown dependants
- Remove: switch off, archive data per retention policy, delete code and infrastructure
Finish the job
A deprecated system that is never removed is the worst of both worlds: still running, but no longer improved. Track deprecations on a visible board, review them monthly, and celebrate removals the way you celebrate launches. Count the savings: servers decommissioned, alerts deleted, monthly cost removed. Keep the replacement's adoption on the same board, because a deprecation is only safe when the new path carries the load. If removal keeps slipping, ask leadership for a firm decision: either fund the last migrations or formally keep the old system with an owner and budget. Either outcome is better than an orphaned system nobody maintains but everybody fears switching off.
Key takeaways
- Every system has a carrying cost; retiring systems is valuable, planned work.
- Measure usage per consumer before announcing; expect unknown dependants.
- Announce, freeze, nudge, brown out, then remove, with signals like the Sunset header.
- Track deprecations to completion and celebrate removals.
Sign in to track lessons and earn badges.