Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

ctx-purge — Claude Code skill: delete context data

A skill to permanently delete project context data in bulk or by session. Wipes the knowledge base, session records, and stats — this action cannot be undone.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mksglu/context-mode --skill ctx-purge -a claude-code
Open on GitHub

What ctx-purge does

ctx-purge operates in two modes. Project scope deletes everything: the FTS5 knowledge base, all session data, events, and stats. Session scope wipes only one session; sibling sessions and project stats remain untouched. This is the only way to delete context-mode data — the built-in /clear and /compact commands do not affect it.

The skill asks for confirmation before deletion and reports exactly what was removed. Use it when the knowledge base has accumulated stale or wrong content that pollutes search results, or when switching to a fresh project without legacy data. For debugging, you can purge a single session while keeping your main work intact.

What it helps with

  • remove stale or incorrect indexed content polluting search results
  • delete one session's data for debugging without losing others
  • start fresh with a new project in the same environment
  • reset session statistics and event logs

Example prompts for the agent

  • /context-mode:ctx-purge with project scope
  • delete only the current session by sessionId
  • wipe the entire project knowledge base in one call

How to install ctx-purge

1Skills CLI (Vercel)

npx skills add mksglu/context-mode --skill ctx-purge -a claude-code

2Manually: put the files in place

~/.claude/skills/ctx-purge/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ctx-purge/

From the same set7

The whole set →

Similar

seedance-prompt-en dexhunter A skill for writing prompts to Seedance 2.0, ByteDance's video generator. Use it when you create videos from text, images, video and audio via the @ reference system. Claude Code CX Codex Cursor +1 3,100installs hermes-agent-skill-authoring Hermes Agent Guides you through authoring Hermes Agent SKILL.md files in a repository, including frontmatter and layout. Useful when a skill must ship with the package. Claude Code CX Codex Cursor +1 516installs build-graph tirth8205 Builds or updates a repository knowledge graph for code review. Use it during first setup, after a branch switch, or following a large refactor. Claude Code CX Codex Cursor +1 1,300installs jira-tickets stablyai This skill reads and updates Jira tickets through Orca’s saved connections. Use it when work starts in Jira or requires ticket changes. Claude Code CX Codex Cursor +1 555installs why cursor The skill investigates why code took its current shape by checking Git history and available MCP sources, then returns cited findings about decisions and tradeoffs. Claude Code CX Codex Cursor +1 5,700installs hyperplan code-yeongyu A team of five agents with opposing roles stress-tests a plan. Only what survives the crossfire makes it to the final scheme. Claude Code CX Codex Cursor +1 576installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs

Questions about ctx-purge

How do I install ctx-purge in Claude Code?

Run npx skills add mksglu/context-mode --skill ctx-purge -a claude-code, then find the skill file at ~/.claude/skills/ctx-purge/SKILL.md.

What does ctx-purge delete?

In project scope, it deletes the knowledge base, all session data, events, and stats. In session scope, only the chosen session is removed.

Is deletion reversible?

No. If you need the content back, you must re-index it from scratch.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor