Dev Ops · n8n

Retire Stale Feature Flags Before They Rot Your Codebase

Feature flags outlive their rollouts and pile up as permanent conditionals nobody dares remove. Track flag age and usage and remind owners to retire the ones long since fully rolled out.

difficulty Intermediatesetup 30 minresult Stale flags get retired on schedule — the codebase stays clean and the flag system keeps meaning something.
  1. 1

    Track Flag Lifecycle

    Log each flag's creation date and current rollout state.

  2. 2

    Find the Stale

    Add a Schedule Trigger flagging those fully rolled out and untouched for months.

  3. 3

    Notify the Owner

    Add a Slack node prompting the owner to remove the flag and its dead branch.

  4. 4

    Confirm Removal

    Track retirement to keep the flag registry honest.

  5. 5

    Activate and Test

    Activate the workflow with a stale test flag. Confirm the reminder fires.

Frequently asked questions

Why do flags accumulate?

Nobody owns cleanup and everyone fears removing a flag — the ownership reminder makes retirement someone's job.

Codebase impact?

Every dead flag is a permanent conditional and a testing burden — retiring them compounds into real maintainability.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.