Install
openclaw skills install @kid0114/subsession-deleteDelete an OpenClaw child session cleanly by removing its transcript, trajectory files, and sessions.json index entry.
openclaw skills install @kid0114/subsession-deleteUse this skill when you need to remove a spawned child session cleanly so it disappears from both disk and the session index/UI.
This skill removes a child session by:
.jsonl.trajectory.jsonl and .trajectory-path.jsonsessions.jsonpython3 skills/subsession-delete/scripts/delete_subsession.py \
--session-key 'agent:subtest2:subagent:EXAMPLE' \
--execute
You can also target by session id:
python3 skills/subsession-delete/scripts/delete_subsession.py \
--session-id '3e16bcb6-998c-45dd-9906-001792b8b706' \
--agent-id subtest2 \
--execute
sessionKey or sessionIdsessions.jsonsessions.json recordsReturn:
sessions.json changed