#Remove a session
1 messages · Page 1 of 1 (latest)
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:
/newor/reset= start a fresh session for the same chat keyopenclaw 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:
- Stop the gateway
- Edit
~/.openclaw/agents/<agentId>/sessions/sessions.json
and remove the session entry - Delete the matching transcript file:
~/.openclaw/agents/<agentId>/sessions/<sessionId>.jsonl - Start the gateway again
The docs explicitly say the session store is safe to edit/delete entries:
- https://docs.openclaw.ai/concepts/session
- https://docs.openclaw.ai/reference/session-management-compaction
- https://docs.openclaw.ai/cli/sessions
If you want, I can also show the exact steps for finding the right sessionId first.