Flag statuses and lifecycle stages
Overview
This topic explains what the different flag statuses are, and how they relate to a flag’s lifecycle. It also describes how to view this information in the LaunchDarkly user interface (UI).
The Flags list shows, for each environment, how many flag evaluations have taken place for each flag.
You can use a project-level filter to filter the list by flag lifecycle stage.
You can use an environment-level filter to filter the list by flag status in that environment.
Flag lifecycle stages
A flag may go through several stages over the course of its lifecycle. The lifecycle stage is based on what is happening across all environments. Not all flags will go through all lifecycle stages.
The following table explains the flag lifecycle stages:
In the Display menu on the Flags list, select Archive checks to display whether a flag is “Ready for code removal” or “Ready to archive.” Then, click the indicator to remove the flag from your code, or to archive it. To learn more, read Edit list columns, Code references, and Archiving flags.
Flag status definitions
The flag status lets you know when a flag is new, active, launched, or inactive. It’s important to understand flag statuses so you know which flags are safe to remove from your code.
Every feature flag has a status that reflects the state of a flag in each environment. The status is specific to an environment. Use the project-level filters on the Flags list to find flags in a specific status.
The following table explains the flag status definitions:
Engineering insights uses different definitions
If you have access to engineering insights, be aware that engineering insights uses more granular definitions of flag status. You can view the flag status on the flag health page.
To learn more, read Flag health.