Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone. Trigger: /context-mode:ctx-purge
64
76%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/ctx-purge/SKILL.mdPermanently deletes session data for this project. Two scopes are supported (issue #520):
scope: "project"): wipes EVERYTHING — knowledge base, all session DB rows for every session, events markdown, and stats.sessionId: "<id>" or scope: "session"): wipes ONLY the matching session's rows + FTS5 chunks. Sibling sessions, project stats, and the FTS5 store file are preserved.sessionId.ctx_index, ctx_fetch_and_index, ctx_batch_execute)mcp__context-mode__ctx_purge MCP tool with the chosen parameters:
{ confirm: true, sessionId: "<id>" } — implies scope:'session'.{ confirm: true, scope: "project" } — explicit destructive form.{ confirm: true } still works but emits a deprecation warning. Prefer the explicit forms.confirm: true is always required.sessionId and scope: "project" together is REJECTED as ambiguous (the sessionId implies session scope; combining with project scope contradicts intent).scope: "session" without sessionId throws — sessionId is required.ctx_purge is the only way to delete session data. No other mechanism exists.ctx_stats is read-only — shows statistics only./clear and /compact do NOT affect any context-mode data.e174272
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.