Skip to content

mem:cleanup

← Back to CLI Commands

Clean up stale memory data

pnpm mem:cleanup

Options:

FlagDescriptionRequired
--dry-runPreview cleanup without making changesNo
--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
--jsonOutput as JSONNo
-q, --quietSuppress output except errorsNo
-b, --base-dir <path>Base directory (defaults to current directory)No
--decayRun decay-based archival (archive stale nodes below threshold). Uses config from workspace.yaml software_delivery or defaults.No

← Back to CLI Commands