List removal candidates
list_removal_candidatesList feature flags the server confirms can be removed, showing reason, status, treatment, and blocking live prerequisites. Remove dependents first; only flags with empty blockedBy are safe.
Instructions
List the flags the server is confident can be removed from code, the same list the Featureflip flag cleanup GitHub Action works from. Each item has key, reason, status (Dead or Stale), treatment (true = keep the on-branch, false = keep the off-branch) and blockedBy: the live flags that still list it as a prerequisite. Only remove a flag whose blockedBy is empty. A flag that other live flags list as a prerequisite has to be removed LAST, dependents first: archiving it while a dependent still names it makes that dependent fail its prerequisite check and serve its off variation, so archive_flag refuses it with FLAG_HAS_DEPENDENTS. staleness "dead" (the default) returns only dead flags, "stale" adds stale ones. Paginated via cursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size (default 20) | |
| cursor | No | next_cursor from a previous response | |
| project | Yes | Project key | |
| staleness | No | Minimum staleness tier: dead (default) or stale |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| next_cursor | No |