# Killing Gen 1: Decommissioning a Legacy System | gen2.dev

> Most replacement projects never switch the old system off. How to find what still calls Gen 1, run a scream test, archive the data and shut it down.

Source: https://gen2.dev/guide/killing-gen-1/

---

Field Guide

# Killing Gen 1

The project is declared done at cutover and the team moves on. Years later the old system is still running, for one customer, one report and a nightly job nobody remembers.

![Slide: an old server still running beside a checklist that ends with switching it off.](https://gen2.dev/img/killing-gen-1.png)

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](https://gen2.dev/guide/running-two-systems/), 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:

1.  **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.
2.  **Find the real need.** A forty-column report is often read for three numbers.
3.  **Make an offer.** A migration done by hand, a replacement export, a discount, a contract end date.
4.  **Escalate once,** to the person who pays for both sides.
5.  **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:

1.  **Announce it.** The date, the duration and where to complain.
2.  **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."
3.  **Turn it off. Do not delete it.** Stop the service or block it at the network. It should come back in minutes.
4.  **Staff the complaint channel.** Every scream is logged and gets one of the four answers from step 2.
5.  **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](https://gen2.dev/cases/python-2-to-3/) and [IPv6](https://gen2.dev/cases/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](https://gen2.dev/guide/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](https://gen2.dev/guide/cutover/), not after it.

## Sources

1.  [Software Engineering at Google - Chapter 15, Deprecation](https://abseil.io/resources/swe-book/html/ch15.html) - written by Hyrum Wright, edited by Tom Manshreck
2.  [Hyrum's Law](https://www.hyrumslaw.com/)
3.  [Will Larson - Migrations: the sole scalable fix to tech debt (April 15, 2018)](https://lethain.com/migrations/)
4.  [David Hirning - Moving from a 'Scream Test' to holistic lifecycle management (Microsoft Inside Track)](https://www.microsoft.com/insidetrack/blog/microsoft-uses-a-scream-test-to-silence-its-unused-servers/)
5.  [Jacqueline Xu - Online migrations at scale (Stripe, February 2, 2017)](https://stripe.com/blog/online-migrations)

Last updated November 29, 2026.

## Field Guide

-   [Rewrite vs refactor](https://gen2.dev/guide/rewrite-vs-refactor/)
-   [The 7 Rs](https://gen2.dev/guide/seven-rs/)
-   [Characterization tests](https://gen2.dev/guide/characterization-tests/)
-   [Estimating a rewrite](https://gen2.dev/guide/estimating-a-rewrite/)
-   [Strangler fig pattern](https://gen2.dev/guide/strangler-fig/)
-   [Monolith to microservices](https://gen2.dev/guide/monolith-to-microservices/)
-   [Lift and shift](https://gen2.dev/guide/lift-and-shift/)
-   [Second-system effect](https://gen2.dev/guide/second-system-effect/)
-   [Branch by abstraction](https://gen2.dev/guide/branch-by-abstraction/)
-   [Anti-corruption layer](https://gen2.dev/guide/anti-corruption-layer/)
-   [Parallel run](https://gen2.dev/guide/parallel-run/)
-   [Shadow traffic](https://gen2.dev/guide/shadow-traffic/)
-   [Dual write and data migration](https://gen2.dev/guide/dual-write/)
-   [Expand and contract](https://gen2.dev/guide/expand-and-contract/)
-   [Data migration tools](https://gen2.dev/guide/data-migration-tools/)
-   [The cutover](https://gen2.dev/guide/cutover/)
-   [Feature flags and dark launches](https://gen2.dev/guide/feature-flags-and-dark-launches/)
-   [Big-bang cutover](https://gen2.dev/guide/big-bang-cutover/)
-   [API versioning](https://gen2.dev/guide/api-versioning/)
-   [Running two systems](https://gen2.dev/guide/running-two-systems/)
-   [Killing Gen 1](https://gen2.dev/guide/killing-gen-1/)
-   [Rewriting a mobile app](https://gen2.dev/guide/rewriting-a-mobile-app/)
-   [Selling a rewrite](https://gen2.dev/guide/selling-a-rewrite/)
-   [AI-written code](https://gen2.dev/guide/ai-written-code/)

## Should we rewrite it?

Sixteen questions about your system. A recommendation, and the reasoning behind it.

[Start the questions](https://gen2.dev/should-we-rewrite/)
