Automated LaunchDarkly Stale Flag Cleanup
On the first Monday of every month, WebRun opens LaunchDarkly, checks every flag across your environments for the last time it was toggled or evaluated, logs anything untouched for 90 days or more to a Notion cleanup page with its owner, and updates a Google Sheets flag inventory so the full list stays current.
How do I find and clean up stale LaunchDarkly feature flags?
WebRun checks every LaunchDarkly flag once a month for the last time it was toggled or evaluated. It logs anything untouched for 90 days or more to a Notion cleanup page by owner, and keeps a full flag inventory current in Google Sheets, so stale flags get cleared out instead of piling up in your codebase.
- Stale flags get a named owner and a cleanup entry every month
- The flag inventory sheet never drifts out of date
- Technical debt from old flags stops accumulating silently
Built for platform teams · engineering managers · software engineering teams · DevOps
What does WebRun do on every run?
The exact actions WebRun takes, in order - in plain language, so you can adjust anything.
-
WebRun signs in and gets to work
Opens
app.launchdarkly.comin a real browser with your saved login - no setup, no API keys. -
1
LaunchDarkly - find flags nobody has touched in months
WebRun opens LaunchDarkly to find flags nobody has touched in months. - Open LaunchDarkly and list flags across every environment
- Check each flag's last toggle date and its owner
- Flag anything untouched for 90 days or more as a cleanup candidate
Done when Every flag untouched for 90 days or more is listed with its owner and environment.
-
2
Notion - log each one for cleanup
WebRun opens Notion to log each one for cleanup. - Add each stale flag to the cleanup page with its owner and last activity date
- Move any flag already removed since last month off the list
- Group the list by owner
Done when The Notion cleanup page lists every currently stale flag by owner.
-
3
Google Sheets - update the flag inventory sheet
WebRun opens Google Sheets to update the flag inventory sheet. - Update the flag inventory sheet with the current full flag list and status
- Mark which flags are newly flagged for cleanup this month
- Keep the sheet as the single source of truth for what flags exist
Done when The inventory sheet reflects every flag currently in LaunchDarkly and its cleanup status.
How is each run configured?
Secure by default
Connect once, stays signed in
WebRun signs in once and keeps each session in a persistent environment, so every run picks up right where it left off.
Every action is checked against this policy before it runs.
Questions, answered
Will it turn off or delete any flags?
No. WebRun only reports which flags look stale. Removing a flag from the code and LaunchDarkly is always done by an engineer.
How does it decide a flag is stale?
It checks the last time each flag was toggled or evaluated. Anything untouched for 90 days or more gets logged as a cleanup candidate.
What if a flag is meant to stay on forever?
Note it as a permanent flag in the Notion page and it stops appearing as a cleanup candidate on future runs.
Put this on autopilot.
Turn it on in minutes - or have our team set it up for you.