# Retire a feature

## When to use

A feature, flag, dependency, integration, or service may need removing.

## Before you start

- A product decision owner who will decide on the removal.
- Usage data you trust. No measured usage is different from no instrumentation.

## Steps

1. Gather usage, the people who depend on it, the cost, and any contracts.
2. Present the evidence to the product decision owner. Record the decision, the notice period, the transition path, the rollback window, and the owners.
3. Map every caller and every piece of state: APIs, jobs, alerts, credentials, billing, and data.
4. Tell affected users through the communication owner. Verify that the replacement works before you remove anything.
5. Stop new use in stages, like a rollout in reverse. Reverse course if an assumption fails.
6. Remove the code and the resources in safe units. Deleting data needs its own authority.
7. Verify the removal. Check that callers are gone, background work and billing have stopped, and credentials are revoked.
8. Record what remains, such as retained data or a recovery window, with an owner. Update tool lists and documentation.

## Done when

The feature is gone, its users have moved, and every remaining obligation has an owner and an end date.

## Stop and ask when

- You find a consumer you did not know about.
- You lack authority to notify users.
- Data retention or deletion duties are unclear.
- There is no way back if the removal breaks something.
