docs
autohealer clean
Remove local git worktrees, matching branches, and workspace directories.
shellsh
autohealer clean autohealer clean backend autohealer clean backend --issue 120189445 autohealer clean --dry-run autohealer clean --repos
Without a workflow name, all local worktrees under the work directory are removed. Passing a workflow limits cleanup to that workflow. Use --issue with a workflow name to target one issue.
Flags
--issue <id>: limit cleanup to one issue (requires a workflow name)--repos: also delete cached bare repository clones (re-cloned on the next run)--dry-run: show what would be removed without deleting anything--work-dir <path>: override the Autohealer work directory
Workflows can set cleanup_after_success: true to remove an issue's worktrees automatically after a successful pull request.