aim-purge

SkillDocs & knowledge

Purge old memories from Qdrant collections with safety guards

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the aim-purge skill

What this skill tells your AI

The instructions your AI receives, as published by hidden-history/ai-memory in .claude/skills/aim-purge/SKILL.md and read by ahel’s review.

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

Signals

GitHub stars
41
Forks
5
Last commit
Sep 2026
Advanced
Item type
skill
Key
aim-purge
Source
github.com/hidden-history/ai-memory