openclaw - 💡(How to fix) Fix [Bug]: acpx sessions cleanup command does not exist — only prune is available [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#77691Fetched 2026-05-06 06:23:00
View on GitHub
Comments
2
Participants
2
Timeline
3
Reactions
2
Timeline (top)
commented ×2closed ×1

Code Example

acpx --version
# 0.6.1

acpx pi sessions cleanup --help
# Usage: acpx sessions [options] [command]
# List, ensure, create, or close sessions for this agent
# Commands: list, new, ensure, close, show, history, read, prune

---

Commands:
  list                      List sessions
  new [options]             Create a fresh session for current cwd
  ensure [options]          Ensure a session exists for current cwd or ancestor
  close [name]              Close session for current cwd
  show [name]               Show session metadata for current cwd
  history [options] [name]  Show recent session history entries
  read [options] [name]     Read full session history
  prune [options]           Delete closed sessions and free disk space

---

acpx: 0.6.1
OpenClaw: 2026.5.3-1 (2eae30e)
OS: Linux 6.8.0-110-generic (x64, Ubuntu)
Install: npm global
RAW_BUFFERClick to expand / collapse

Describe the bug

The acpx sessions cleanup command documented in the official CLI docs at https://docs.openclaw.ai/cli/acp does not exist in acpx 0.6.1. The only cleanup-related command is acpx sessions prune, which deletes closed sessions.

To Reproduce

acpx --version
# 0.6.1

acpx pi sessions cleanup --help
# Usage: acpx sessions [options] [command]
# List, ensure, create, or close sessions for this agent
# Commands: list, new, ensure, close, show, history, read, prune

Expected behavior

acpx sessions cleanup should exist as documented at https://docs.openclaw.ai/cli/acp, or the docs should reference prune instead.

Actual behavior

Commands:
  list                      List sessions
  new [options]             Create a fresh session for current cwd
  ensure [options]          Ensure a session exists for current cwd or ancestor
  close [name]              Close session for current cwd
  show [name]               Show session metadata for current cwd
  history [options] [name]  Show recent session history entries
  read [options] [name]     Read full session history
  prune [options]           Delete closed sessions and free disk space

No cleanup subcommand. Only prune exists.

System Information

acpx: 0.6.1
OpenClaw: 2026.5.3-1 (2eae30e)
OS: Linux 6.8.0-110-generic (x64, Ubuntu)
Install: npm global

extent analysis

TL;DR

The acpx sessions cleanup command is not available in acpx 0.6.1, but acpx sessions prune can be used as a potential workaround.

Guidance

  • The acpx sessions prune command can be used to delete closed sessions, which may help with cleanup.
  • Verify the available commands by running acpx sessions --help to see the list of supported subcommands.
  • Check the official CLI documentation at https://docs.openclaw.ai/cli/acp for any updates or corrections regarding the cleanup command.
  • Consider reporting the documentation discrepancy to the OpenClaw team to ensure the docs are updated to reflect the available commands.

Example

No code snippet is provided as it's not necessary for this specific issue.

Notes

The acpx sessions cleanup command is not available in the current version of acpx, and the documentation appears to be outdated. Using acpx sessions prune may help with cleanup, but it's essential to verify its functionality and potential impact.

Recommendation

Apply workaround: Use acpx sessions prune as a temporary solution until the documentation is updated or the cleanup command is implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

acpx sessions cleanup should exist as documented at https://docs.openclaw.ai/cli/acp, or the docs should reference prune instead.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: acpx sessions cleanup command does not exist — only prune is available [2 comments, 2 participants]