Feature Flags
Product Updates
2.6

Stale Feature Flag Detection

Stale Feature Flag Detection

Feature flags are a fantastic way to reduce risk during deployments, but they can also be a source of technical debt. It’s common for engineers to forget to clean up feature flags from the code that aren’t being used anymore.

To help solve this problem, GrowthBook now alerts you when we detect a "stale" feature flag. These stale flags are good candidates for removal from your code, reducing your technical debt.

GrowthBook UI showing stale feature flag detection alert on an unused flag

We define a "stale" feature flag as one that has not been updated in the past two weeks and serves the same value to all users - that means there are no active experiments or force rules.

This detection isn't perfect. There are times when a long-lived feature flag makes sense - for example, a kill switch for when a 3rd party provider has an outage. For these features, you can easily dismiss the stale notification by clicking on the icon.

disable-stale-ff-02
Dismissing a stale feature flag notification in GrowthBook for a long-lived kill switch

We have a lot more planned in the future to help you stay on top of your technical debt - everything from integrating with GitHub Code References to detecting actual realtime usage from our SDKs. Stay tuned and let us know your thoughts!

Table of Contents

Related Articles

See all articles
Guides
Feature Flags
Experiments
How to Migrate from Statsig to GrowthBook
Feature Flags
Feature Flags: What They Are, How They Work, and Why They Matter
Feature Flags
Your React Feature Flags Are Probably Broken (Here's How to Fix Them with TypeScript)

Ready to ship faster?

No credit card required. Start with feature flags, experimentation, and product analytics—free.