#Remove a session

1 messages · Page 1 of 1 (latest)

iron idol
#

How do I remove (delete) a session. I am not looking for /reset or /new.

brazen swiftBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

dusky tendonBOT
robust bearBOT
#

Let me verify the docs path and the actual session commands before I answer.

#

Short answer: there is no built-in “delete this specific session” command right now.

What exists today:

  • /new or /reset = start a fresh session for the same chat key
  • openclaw sessions cleanup = prune old/orphaned sessions, not a specific one
  • Manual delete on the gateway host = the real way to remove one session

Manual path:

  1. Stop the gateway
  2. Edit
    ~/.openclaw/agents/<agentId>/sessions/sessions.json
    and remove the session entry
  3. Delete the matching transcript file:
    ~/.openclaw/agents/<agentId>/sessions/<sessionId>.jsonl
  4. Start the gateway again