Skip to content
BENIBIX Learn

claude rm Command

Also known as claude rm, Delete a background session

It takes a background session off the list.

Think of it like

It is like you take a done card off the board. You keep it in a drawer.

Example

Jack's list has twenty finished sessions. He runs claude rm on the ones he no longer needs, and the list is short again.

Why it matters

A short list is easy to read. Old sessions are still there if you need them later.

Definition

claude rm takes a background session off the list in agent view, once you are done with it. Its chat stays on your computer, so you can still open it with claude --resume. It will not delete a session whose worktree has changes you have not saved to git, so you do not lose work by mistake.

Example code

bash
claude rm 7c5dcf5d
Take this session off the list.
rm takes a row off the list. The transcript stays on disk.

Common mistake

Thinking it deletes the chat for good. The transcript stays, and claude --resume can open it.

Key takeaways

  1. 1
    Off the list. Not gone.
  2. 2
    Transcript stays. claude --resume.
  3. 3
    Guards changes. Uncommitted work.

Compare

Learn it properly