memories.sh
CLI Reference

memories forget

Soft-delete memories by ID or bulk filter.

memories forget [id] [options]

Remove memories by ID or in bulk using filters. Memories are soft-deleted (marked with a deleted_at timestamp) and excluded from all queries. Use memories doctor --fix to permanently purge soft-deleted records.

Arguments

ArgumentDescription
idMemory ID to forget (omit for bulk operations)

Options

OptionDescription
--type <type>Forget all memories of this type
--tag <tag>Forget all memories with this tag
--older-than <days>Forget memories older than N days
--pattern <pattern>Forget memories matching pattern (use * as wildcard)
--allForget ALL memories (requires --force or confirmation)
--project-onlyOnly forget project-scoped memories
--dry-runPreview what would be deleted
--forceSkip confirmation prompt

Examples

Forget a single memory:

memories forget abc123def456

Preview what would be deleted:

memories forget --type note --dry-run

Forget all notes older than 30 days:

memories forget --type note --older-than 30

Forget memories matching a pattern:

memories forget --pattern "TODO*"

Forget everything (with confirmation):

memories forget --all

Behavior

  • Single-ID mode does a direct soft-delete without confirmation
  • Bulk mode requires at least one filter option
  • Previews up to 30 matching memories before asking for confirmation
  • --all cannot be combined with other filters
  • Large deletions are batched in chunks of 500
  • Soft-deleted memories can be permanently purged with memories doctor --fix