From context-mode
Permanently purges context-mode knowledge base and session stats, either project-wide or per-session. Use for fresh starts, removing stale indexed content, or isolating polluted sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/context-mode:ctx-purgeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Permanently deletes session data for this project. Two scopes are supported (issue #520):
Permanently 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.npx claudepluginhub hgxszhj/-context-mode1 --plugin context-modePermanently deletes all indexed content and session stats from the context-mode knowledge base. Use via /context-mode:ctx-purge for scoped (session) or full (project) wipe.
Resets knowledge base by clearing patterns, quirks, decisions, cache, session, and state to initial empty values. Invoke /learn-reset to wipe accumulated insights.
Batch-clean up session types (ideation, discussion, debug, plans, requests) in bulk, archiving completed items beyond a configurable keep count and prompting for stale active requests.