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.
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!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Feature Flags
Product Updates
2.6
Stale feature flag detection
Nov 29, 2023
Experiments
Product Updates
2.6
Boost confidence in experiment launches with GrowthBook's pre-launch checklists
Nov 28, 2023
Releases
Product Updates
2.6
GrowthBook version 2.6
Nov 28, 2023
Subscribe to the Uplift
Ready to ship faster?
No credit card required. Start with feature flags, experimentation, and product analytics — free.