Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.260 ·

claude rm can now force-discard unpushed commits

claude rm can now force-delete a worktree with unpushed commits using a new flag.

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaSessionswhat it touches
KindNew Featuresin v2.1.260,
Use it now Notable

claude rm can now force-delete a worktree with unpushed commits using a new flag.

claude rm <id> gains a --discard-unpushed <commit>@<worktree-id> option to delete a background session's worktree even when it has unpushed commits or uncommitted changes, provided the worktree is still at the commit last reported. When claude rm refuses to delete a worktree with unpushed work, it now reports the exact <commit>@<worktree-id> value to pass to this new flag.

Read from
Names in the bundleclaude rm
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up claude rm, on Manage multiple agents with agent view. * Delete the session again to remove the directory anyway, by pressing `Ctrl+X` twice on its row in agent view or running the `claude rm <id> --force-remove-worktree <worktree-id>` command that the `claude rm` refusal printed. Claude Code … agent-view see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up claude rm, on Manage multiple agents with agent view.

See this entry in the whole of v2.1.260 →

Feedback