Skip to content

mem:delete

← Back to CLI Commands

Delete/archive a memory node

pnpm mem:delete

Options:

FlagDescriptionRequired
--dry-runPreview deletion without making changesNo
--id <nodeId...>Node ID to delete (mem-XXXX; repeatable). Also accepted as positional args.No
--tag <tag>Delete all nodes matching this tagNo
--older-than <duration>Delete nodes older than duration (e.g., 30d, 7d, 24h, 2w)No
--jsonOutput as JSONNo
-q, --quietSuppress output except errorsNo
-b, --base-dir <path>Base directory (defaults to current directory)No

← Back to CLI Commands