Open the console

Removing an Onboarding Step for a Deprecated Feature

Retiring a feature usually means retiring the onboarding step that introduces it. Here is how to do that without breaking historical completion records.

Removing an Onboarding Step for a Deprecated Feature

A feature gets deprecated. Someone updates the UI, removes the route, maybe leaves a redirect behind. Then, weeks later, support gets a ticket: a new account's onboarding checklist is stuck on a step that points at a page that no longer exists. The step was never cleaned up, because deprecating a feature and deprecating the onboarding step that introduces it are two separate jobs, and only the first one has a standard checklist of its own.

Why the step outlives the feature

Onboarding steps are usually defined once and referenced by ID from every account's progress record. The step definition is small — a title, a target route, maybe a condition for when it applies — so it is easy to treat it as metadata rather than as a dependency on the feature it points to. When the feature ships a v2 or disappears entirely, the people doing that work are rarely the same people who wrote the onboarding copy six months earlier, and the step is not on their list of things to check.

The result is a step that still shows up for new accounts, still counts toward the checklist's total, and leads nowhere useful. If the step was mandatory for completion, new users now cannot finish onboarding at all — not because anything is broken, but because the checklist is asking for something that stopped existing.

Two kinds of removal, and why they need different handling

Removing a step cleanly means asking a different question depending on who has already touched it:

  • Accounts that never saw the step (created after the feature was pulled) should simply not have it in their checklist at all. This is a filtering problem at read time or at checklist-generation time, not a deletion problem.
  • Accounts that already completed the step have a historical record that something happened — a fact about what that user did, independent of whether the feature still exists. Deleting that row erases a true thing, and if your activation metrics depend on completion counts, it quietly changes the denominator for every report that already ran.
  • Accounts with the step incomplete are the ambiguous middle: should it silently drop off their list, or should it be marked complete by default since the feature is gone and there is nothing left to do?

Deciding this per-account, rather than per-step, is what keeps a deprecation from turning into a data-integrity incident.

Soft-retire instead of deleting the row

The pattern that avoids most of this pain is a status on the step definition itself, not a deletion:

UPDATE checklist_steps
SET status = 'retired', retired_at = now()
WHERE id = 'connect-legacy-integration';

With a status column, the checklist-rendering query excludes retired steps from any account that has not started them, while leaving existing step_completions rows untouched. An account that finished the step last month still has a true historical record; an account that never got there never sees it appear. Nothing downstream that counts completions needs to change, because the rows that exist are still accurate.

For the ambiguous middle — accounts with the step started but not finished — the simplest honest option is to auto-complete it at retirement time with a distinguishing flag (completed_via = 'retired'), rather than silently dropping it from their count or leaving it stuck forever. That keeps the checklist's total consistent for everyone who is already mid-flow, and it is a single row you can query back out later if the decision needs revisiting.

Decoupling step definitions from feature code

None of this requires a major rearchitecture, but it does require the onboarding step to carry a pointer to the thing it depends on, so that whoever removes the feature has something to search for. A feature_key column on the step definition, checked in code review whenever a feature flag or route is deleted, turns an invisible dependency into a grep. If your onboarding steps already live in a dashboard you can edit without a deploy, the fix is even cheaper: retiring a step is a status toggle, not a code change, so it can happen the same day the feature does instead of three sprints later when someone notices the ticket.

It is worth treating this the same way you would treat rolling back a checklist feature flag: both are cases where a step's lifecycle needs to track something outside the checklist itself, and both fail quietly if that tracking is manual and easy to forget.

What to measure instead of guessing

No benchmark exists for how often this happens or how long a dangling step typically survives before someone notices — that depends entirely on how often your product deprecates features and how closely anyone watches checklist completion rates. What is worth instrumenting is simpler: track the completion rate of each step over time, and alert when a step that used to get completed regularly drops to near zero. A sudden drop is often not a UX regression — it is a sign the thing on the other end of the step stopped existing, and the fastest way to know is a flat line in the dashboard, not a support ticket three weeks later.

Try it on your app