mem:cleanup
mem:cleanup
Section titled “mem:cleanup”Clean up stale memory data
Options:
| Flag | Description | Required |
|---|---|---|
--dry-run | Preview cleanup without making changes | No |
--ttl <duration> | Remove nodes older than duration (e.g., 30d, 7d, 24h). Active sessions are protected. | No |
--session-id <uuid> | Session ID to consider closed (removes session lifecycle nodes) | No |
--json | Output as JSON | No |
-q, --quiet | Suppress output except errors | No |
-b, --base-dir <path> | Base directory (defaults to current directory) | No |
--decay | Run decay-based archival (archive stale nodes below threshold). Uses config from workspace.yaml software_delivery or defaults. | No |