Aim Purge

Purge old memories from Qdrant collections with safety guards

Hidden-History Updated

File contents

Purge old memories from Qdrant collections with safety guards.

Default (no --confirm): dry-run preview — shows what would be purged, no deletions. --confirm: executes the purge. Irreversible — audit log written to .audit/logs/purge-log.jsonl.

Canonical Execution

"${AI_MEMORY_INSTALL_DIR:-$HOME/.ai-memory}/scripts/memory/run-with-env.sh" purge_collections.py \
    --older-than <duration> \
    [--collection <name>] \
    [--confirm]

Parameters

  • --older-than (required): duration string — 30d, 2w, 3m, 1y
  • --collection: limit purge to one collection (default: all four)
  • --confirm: execute the purge (absence = dry-run safety gate)

Script

scripts/memory/purge_collections.py

Hidden-History/ai-memory/tree/main/.claude/skills/aim-purge commit 6361f6d0ac

Frequently asked questions

npx skillmds@latest add hidden-history/aim-purge