> ## Documentation Index
> Fetch the complete documentation index at: https://docs2.growthbook.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Stale Feature Flag Detection

> Identify feature flags that are no longer actively used so you can clean them up.

Over time, some feature flags become "stale" — they're no longer actively used or relevant, but they remain in your system. Stale flags add clutter to your dashboard and make it harder to understand which flags actually matter. GrowthBook can automatically detect these flags so you can clean them up.

## Viewing Stale Flags

Stale flags are surfaced in the main feature flag table. Look for the **Stale** column, which indicates whether a flag has been marked stale.

<Frame>
  <img src="https://mintcdn.com/growthbook-ea15456d/1rsmujQCDzXz2Vho/static/images/features/stale-ff-overview.png?fit=max&auto=format&n=1rsmujQCDzXz2Vho&q=85&s=b370baabd443666a57eff8347394405a" alt="Stale Flag Column" width="800" data-path="static/images/features/stale-ff-overview.png" />
</Frame>

You can also see the stale indicator on individual feature pages, next to the feature name.

<Frame>
  <img src="https://mintcdn.com/growthbook-ea15456d/1rsmujQCDzXz2Vho/static/images/features/stale-ff-page-view.png?fit=max&auto=format&n=1rsmujQCDzXz2Vho&q=85&s=1f64e6cfeda275ac0e90ee7380eb8c18" alt="Stale Flag Indicator" width="800" data-path="static/images/features/stale-ff-page-view.png" />
</Frame>

## How GrowthBook Determines Stale Status

Hover over the warning icon next to a stale flag to see the specific reason it was flagged.

A flag is considered stale if it hasn't been updated in two weeks **and** meets at least one of these criteria:

* No active environments (the flag is disabled everywhere)
* One-sided rules that send 100% of traffic to a single variation

## Toggling Stale Detection

You can disable stale detection for a specific flag from the feature details page or from the features table.

<Frame>
  <video autoPlay loop muted style={{width: '100%', height: "auto", marginBlockEnd: "1.5rem", border: "1px solid var(--color-border)"}} controls allowFullScreen>
    <source src="https://mintcdn.com/growthbook-ea15456d/66H-dO8hZfIFVUdN/static/videos/stale-ff-overview-never-stale.mp4?fit=max&auto=format&n=66H-dO8hZfIFVUdN&q=85&s=523e0bbfa28c74d6742d18b7d2034354" type="video/mp4" data-path="static/videos/stale-ff-overview-never-stale.mp4" />
  </video>
</Frame>

To re-enable stale detection, navigate to the menu in the top right of the feature details page.

<Frame>
  <video autoPlay loop muted style={{width: '100%', height: "auto", marginBlockEnd: "1.5rem", border: "1px solid var(--color-border)"}} controls allowFullScreen>
    <source src="https://mintcdn.com/growthbook-ea15456d/66H-dO8hZfIFVUdN/static/videos/stale-ff-never-stale-page.mp4?fit=max&auto=format&n=66H-dO8hZfIFVUdN&q=85&s=d97e2edb4d9013703c030086ea8abf6f" type="video/mp4" data-path="static/videos/stale-ff-never-stale-page.mp4" />
  </video>
</Frame>

<Tip>
  Use [Code References](/features/code-references) alongside stale detection to see exactly where a stale flag is used in your codebase, making cleanup faster and safer.
</Tip>
