{"name":"rm","slug":"rm","family":"cli","title":"CLI flags","noun":"CLI flag","description":"When `claude rm` is blocked, it names the session holding the directory and how to stop it.","description_source":"entry","described_by":{"version":"2.1.227","anchor":"claude-rm-tells-you-which-session-is-holding-a-directory"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.268","anchor":"claude-rm-gains-a-force-remove-worktree-flag-and-rich","heading":"claude rm gains a --force-remove-worktree flag and rich refusal messages","line":"`claude rm` gets a `--force-remove-worktree` flag and much more detailed refusal messages","released_at":"2026-09-10 18:41:11","reason":"named in this entry"},{"version":"2.1.268","anchor":"new-claude-rm-subcommand-flags-for-background-sessions","heading":"New 'claude rm' subcommand flags for background sessions","line":"claude rm gains --discard-unpushed and --force-remove-worktree flags for cleaning up background session worktrees","released_at":"2026-09-10 18:41:11","reason":"named in this entry"},{"version":"2.1.260","anchor":"claude-rm-can-now-force-discard-unpushed-commits","heading":"claude rm can now force-discard unpushed commits","line":"claude rm can now force-delete a worktree with unpushed commits using a new flag.","released_at":"2026-09-03 22:32:02","reason":"named in this entry"},{"version":"2.1.260","anchor":"new-unpushed-commit-summary-in-worktree-kept-messages","heading":"New unpushed-commit summary in worktree-kept messages","line":"claude rm now prints a readable summary of unpushed commits kept in a worktree.","released_at":"2026-09-03 22:32:02","reason":"named in this entry"},{"version":"2.1.248","anchor":"claude-attach-explains-cleaned-up-background-sessions-instea","heading":"claude attach explains cleaned-up background sessions instead of failing generically","line":"Reopening a cleaned-up background session now points you at claude rm and claude respawn.","released_at":"2026-08-27 20:35:36","reason":"named in this entry"},{"version":"2.1.227","anchor":"claude-rm-tells-you-which-session-is-holding-a-directory","heading":"claude rm tells you which session is holding a directory","line":"When `claude rm` is blocked, it names the session holding the directory and how to stop it.","released_at":"2026-08-10 20:56:57","reason":"named in this entry"}],"entries_total":6,"docs":[],"docs_total":0,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/rm","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}