mem:delete
mem:delete
Section titled “mem:delete”Delete/archive a memory node
Options:
| Flag | Description | Required |
|---|---|---|
--dry-run | Preview deletion without making changes | No |
--id <nodeId...> | Node ID to delete (mem-XXXX; repeatable). Also accepted as positional args. | No |
--tag <tag> | Delete all nodes matching this tag | No |
--older-than <duration> | Delete nodes older than duration (e.g., 30d, 7d, 24h, 2w) | No |
--json | Output as JSON | No |
-q, --quiet | Suppress output except errors | No |
-b, --base-dir <path> | Base directory (defaults to current directory) | No |