Switching the old system off is the step that pays for the whole project. Until it happens, the organization is still paying the double cost described in Running two systems at once, and none of the promised savings have arrived.
Software Engineering at Google opens its chapter on deprecation with the premise that "code is a liability, not an asset," and adds that systems "have continuing maintenance costs that should be weighed against the costs of removing them." A Gen 1 with three users still needs patches, hosting, licenses and someone who remembers how it works.
Why it is still running
- The last 10% is the hard 10%. It was left for last because it was hard.
- Nobody owns the removal. The build had a team. The teardown is a side task.
- People are attached to it. The same book notes that "It can be difficult to convince engineers to tear down something they've spent years building."
- Nobody knows what depends on it. Hyrum's Law: "all observable behaviors of your system will be depended on by somebody."
- Asking nicely does not work. "Deprecation warnings can help prevent new uses, but rarely lead to migration of existing systems."
The eight steps below are in order.
1. Give the removal an owner and a date
The Google book separates advisory deprecation, where "we hope that clients move, but can't force them to," from compulsory deprecation, and says a compulsory schedule "needs to have an enforcement mechanism." For Gen 1 that means three things: a named owner, a published switch-off date, and the authority to switch it off on that date.
The owner's team does the leftover work itself. Will Larson's advice on finishing a migration is that getting to 100% requires the team leading it "to dig into the nooks and crannies themselves."
2. Sort the last 10% of features
Every feature still served by Gen 1 gets one of four answers:
| Answer | When |
|---|---|
| Build it in Gen 2 | It is used and it matters |
| Replace it with something simpler | A monthly export or a manual step would do |
| Retire it | The logs show nobody uses it |
| Buy it out | One customer or team needs it, and a deal is cheaper than the feature |
Decide from usage data, not from opinion. Log usage across a full business cycle, including month-end and year-end, before calling anything unused.
3. The one customer or report nobody will give up
There is always one. Handle it as a business decision:
- Price it. Add up what Gen 1 costs per year to keep. If that is $240,000 and the customer who needs it pays $30,000, the conversation changes.
- Find the real need. A forty-column report is often read for three numbers.
- Make an offer. A migration done by hand, a replacement export, a discount, a contract end date.
- Escalate once, to the person who pays for both sides.
- If the answer is keep it, that is a funded decision with an owner and a review date. It is not a default.
4. Find what still calls it
Check all of these, over a full business cycle:
- Request logs, by endpoint and by caller.
- Database logins, by account and by source host.
- Scheduled jobs, batch files and file drops, in both directions.
- Outbound traffic: emails, feeds and exports that someone else consumes.
- Reporting tools and spreadsheets with direct database connections.
- DNS records, firewall rules, certificates and single sign-on entries.
- A code search across every repository for hostnames and connection strings.
- People. Ask finance and operations what they open at month-end.
Hyrum's Law says this list will miss something. The next two steps exist for that reason.
5. Read-only mode
Turn off writes first. Leave the screens and reports up for lookups, with a banner showing the switch-off date. Read-only mode flushes out any writer the inventory missed, loses no data, and can be reversed in minutes. Hold it through at least one month-end.
6. The scream test
Microsoft Digital, the company's IT organization, calls the scream test "a simple but effective technique": switch a suspect server off and wait to see who complains. The team expected to retire a small number of machines and found the share was about 15% of all machines.
For a retiring system, run it on purpose:
- Announce it. The date, the duration and where to complain.
- Start with short outages and lengthen them. At Google, teams "announce planned outages of increasing duration in the months and weeks prior to the turndown."
- Turn it off. Do not delete it. Stop the service or block it at the network. It should come back in minutes.
- Staff the complaint channel. Every scream is logged and gets one of the four answers from step 2.
- Hold the final outage through a full business cycle.
The scream test is the last net, not a replacement for step 4. Do not use it where an outage causes harm that cannot be undone. Find those callers the slow way.
7. Archive and retention
- Get retention requirements from legal and finance in writing, per class of data. Do not guess.
- For each data set choose one: migrate to Gen 2, archive, or delete. Deletion is sometimes required, not just allowed.
- Archive in a form that can be read without Gen 1: plain files or a standard database dump, with the schema documented. A backup that only restores into a running Gen 1 is not an archive.
- Test it. Answer one real question from the archive, such as finding an invoice from the oldest year.
- Give the archive an owner and an expiry date.
8. Switch it off
- Take a final backup and verify it.
- Stop the services. Remove DNS records, load balancer entries, firewall rules and certificates.
- Revoke service accounts, API keys and secrets.
- Cancel licenses and support contracts. This is where the savings become real.
- Release the servers.
- Remove the monitoring, the alerts and the on-call rotation.
- Delete the transitional code in Gen 2: the router, adapters, sync jobs and flags. The last step in Stripe's migration write-up is removing the old data and the code that depended on it.
- Archive the repository read-only and update the runbooks.
- Tell everyone, and mark the day. Larson argues that most of the recognition for a migration "should be reserved for its successful completion."
When not to use it
The full sequence is for a system with users. Slow down or stop in these cases.
- Gen 2 is not yet carrying the work. Retiring Gen 1 early removes the only fallback.
- A law or contract requires the system to stay available. Make it read-only and keep it.
- Nobody is paying to run it and nothing calls it, with logs to prove it: just switch it off and archive.
How it goes wrong
- The team disbands at cutover. Removal has no staff, so it has no date.
- The exception becomes permanent. One customer was allowed to stay "for now," and no one priced it.
- It is deleted too fast. A year-end job nobody listed fails, and there is nothing to turn back on.
- The archive cannot be read. The data was kept in a format only Gen 1 understood.
- The scaffolding stays. Gen 1 is gone, but the router and the sync jobs live on in Gen 2 as dead weight.
The Python 2 to 3 and IPv6 case files are both about an old generation that outlived its replacement plan.
What to take from it
- Removal is part of the project. Staff it, fund it and date it up front, in the proposal described in Selling a rewrite.
- Sort every leftover feature into build, simplify, retire or buy out.
- Inventory callers, then assume the inventory is incomplete.
- Go read-only, then off, then deleted. Each stage is reversible until the last.
- Keep the data only as long as someone has said, in writing, that it must be kept.
- Start planning the end at the cutover, not after it.
Sources
- Software Engineering at Google - Chapter 15, Deprecation - written by Hyrum Wright, edited by Tom Manshreck
- Hyrum's Law
- Will Larson - Migrations: the sole scalable fix to tech debt (April 15, 2018)
- David Hirning - Moving from a 'Scream Test' to holistic lifecycle management (Microsoft Inside Track)
- Jacqueline Xu - Online migrations at scale (Stripe, February 2, 2017)
Last updated November 29, 2026.

