Flag archive automation
Once a feature ships, at some point, you’ll need to clean up the flag code. But this doesn’t happen right away, making it easy to forget. Over time, even the most diligent of teams end up with a bunch of stale flags.
To help you avoid this, we already announced stale flag detection and AI flag cleanup. Today, we’re adding two flag archiving automations as well:
- Auto-create cleanup PRs: Bucket will create PRs in your GitHub repository X days after the feature has been rolled out to everyone (7 days by default).
- Auto-archive feature: Bucket will archive the feature when all archival checks pass for features.
With these automations you can put flag cleanup on autopilot. Of course, you can still manually archive a feature at any point, too.

Get started by enabling the automations in settings, or read the docs for more info. Plus, check out our launch week page for our final product announcement of the week, coming tomorrow.