This article helps you:
Understand when feature flags and experiments become stale
Learn how to identify and manage stale flags and experiments
Configure stale dates and receive notifications for cleanup
Stale flag management helps you maintain a clean codebase by identifying feature flags that have either been completely rolled out or have been rolled back for a specific period of time.
A feature flag or experiment becomes stale when it meets one of these conditions:
After a flag or experiment becomes stale, it's ready for cleanup. This means you should remove the flag from your codebase and archive it in Amplitude.
When you view a flag or experiment that is stale, a stale status badge appears next to the other status badges in the header. Hover over the stale badge to see when it became stale and update the stale date if needed.
In the flags and experiments table, the stale status appears as a secondary status badge next to the primary status. You can filter the table to show only stale flags and experiments.
When you roll out or roll back a flag or experiment, you can set a custom stale date. This date determines when the flag or experiment becomes stale.
By default, Amplitude sets the stale date to 30 days after you roll out or roll back the flag or experiment. You can change this date or remove it if the flag is long-lived and doesn't need a cleanup date.
If you change the rollout after a stale date is already set, you can update the stale date. For example:
Amplitude sends notifications when flags and experiments become stale. Notifications are sent once per day to all owners of stale flags and experiments that became stale in the last 24 hours.
You can receive notifications through:
Configure notification preferences in your organization settings.
After a flag or experiment becomes stale, take these steps:
If a flag or experiment has multiple variants and one variant is rolled out to 100%, keep that variant in your application while removing the others. This ensures the winning variant remains active.
You can use AI coding tools to help remove feature flags from your code. These tools can identify flag references and generate code changes to remove them.
February 11th, 2026
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2026 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.