Menu

Cleaning Up After a Full Rollout

Last updated February 12, 2026

Once a feature is stable and the flag has been enabled in all environments for a while, remove it from your codebase and dashboard.

terminal
vercel flags list --state active
terminal
vercel flags inspect old-onboarding-flow

Check the output to confirm the flag is enabled in all environments and hasn't been changed recently.

Search your codebase for the flag key and its camelCase variant:

terminal
rg "old-onboarding-flow" --type ts
rg "oldOnboardingFlow" --type ts

Delete the flag() declaration from your flags.ts file.

Keep only the code path that was behind the enabled flag:

Before
const show = await oldOnboardingFlow();
return show ? <NewOnboarding /> : <OldOnboarding />;
After
return <NewOnboarding />;

Delete any component files that are no longer referenced.

terminal
vercel deploy

Visit the preview URL to confirm the feature still works without the flag.

Once archived, the flag stops evaluating and your application falls back to the decide default defined in code.

terminal
vercel flags archive old-onboarding-flow --yes

See Archive for details on what happens when you archive.

terminal
vercel deploy --prod

Was this helpful?

supported.