Skip to content
Source
Sign inSign up
pingdotgg/t3code

Feature request: bulk delete all worktrees for a repo #684

Closedchaithanya009(GitHub profile, opens in a new tab) opened this issue 0 comments

Problem

T3 Code already supports deleting a single worktree when deleting a thread, but there does not seem to be a repo-level cleanup action for when work is finished and multiple worktrees have accumulated.

Requested behavior

Add a way to delete all T3 Code-managed worktrees for a given repository in one action.

Use case

After finishing a set of tasks for a repo, I may have several stale worktrees left behind from previous threads. Cleaning them up one by one is tedious.

Suggested UX

  • Add a repo-level action such as Delete all worktrees / Clean up worktrees
  • Scope it to the current repository only
  • Show a confirmation dialog with the list/count of worktrees that will be removed
  • Skip worktrees still linked to active threads, or clearly warn before deleting them
  • Optionally offer a force path for dirty worktrees

Why this would help

This would make post-task cleanup much faster and keep local disk usage + workspace clutter under control, especially for repos where worktree-first workflows are common.

Sign in to join this conversation.