Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

aim-purge

Skill by Hidden-History

Purges old memories from Qdrant collections. It runs as a dry-run preview by default and writes an audit log when the purge is confirmed. Built for users who keep AI memory in Qdrant and need to clear outdated entries with safety guards.

  • Score 49
  • 41 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install aim-purge

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Hidden-History/ai-memory /tmp/ai-memory && mkdir -p ~/.claude/skills && cp -r /tmp/ai-memory/_ai-memory/skills/aim-purge ~/.claude/skills/aim-purge

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install aim-purge in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

aim-purge is an agent skill that removes old memories from Qdrant collections. It is triggered with /aim-purge and requires an age value through the --older-than parameter, such as 30d, 2w, 3m or 1y. By default it runs as a dry-run that only shows what would be purged. Adding --confirm executes the purge.

The skill can limit the purge to one collection with --collection. Without that option, it covers all four collections. Each executed purge is irreversible and writes an audit log to .audit/logs/purge-log.jsonl. It suits users who maintain an AI memory store in Qdrant and want to clear older entries with safety guards in place.

Written from the project's SKILL.md and checked against it.

What it can do

  • Dry-run previewShows what would be purged when --confirm is absent, without deleting anything.
  • Age-based purgeRemoves memories older than a duration such as 30d, 2w, 3m or 1y.
  • Single collection limitRestricts the purge to one named collection with --collection.
  • Confirmed executionRuns the actual purge only when the --confirm flag is passed.
  • Audit logWrites purge records to .audit/logs/purge-log.jsonl when a purge is executed.

What you need

  • Qdrant collections holding AI memory
  • AI memory installation directory (AI_MEMORY_INSTALL_DIR or $HOME/.ai-memory)

Try asking

  • Preview which memories older than 90 days would be purged from Qdrant
  • Purge memories older than 6 months from the notes collection only
  • Run the aim-purge dry-run for memories older than 1 year

Good to know

  • Executed purges are irreversible.
  • Without --confirm the skill only previews and deletes nothing.
  • --older-than is required and accepts duration strings such as 30d, 2w, 3m or 1y.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: _ai-memory/skills/aim-purge/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash

Alternatives to aim-purge

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

aim-purge: common questions

Does aim-purge delete anything by default?

No. Without the --confirm flag it runs a dry-run that only previews what would be purged.

Can I purge only one collection?

Yes. The --collection parameter limits the purge to a single named collection. The default is all four collections.

Is there a record of purges?

When a purge is executed, an audit log is written to .audit/logs/purge-log.jsonl.

How do I install aim-purge?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is aim-purge free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is aim-purge safe to use?

It scores 49 of 100. Grades: maintenance A, licence A, quality C. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to aim-purge?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

aim-purge Install

Add to stack

Loading.