Prune cached worktrees and index entries
bc_prune_cacheRemoves worktrees and index entries for branches that do not match specified keep filters, preserving only the branches, versions, or localizations you define.
Instructions
Removes worktrees and index entries for branches not matching the keep filters. Pass keep_branches (explicit allowlist) or keep_versions/keep_localizations to retain only certain version/loc combinations. The partial-clone Git repo itself is never deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_branches | No | Explicit branches to retain (exact names). | |
| keep_versions | No | Versions to retain, e.g. ["26", "27"]. | |
| keep_localizations | No | Localizations to retain, e.g. ["w1", "fr"]. | |
| dry_run | No | If true, only report what would be deleted. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| removed | Yes | ||
| kept | Yes | ||
| freed_mb | Yes | ||
| dry_run | Yes |