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.