Clear Cursor documentation search cache (inverted index)
Clears the Cursor documentation search cache to force index rebuild. Use when search results are stale, after editing docs, or to free disk space.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install response-quality@melodic-software[--force] (optional)Clear the cursor-docs search cache (inverted index). This forces the index to rebuild on the next documentation search.
index.yaml or documentation filesgit pull with documentation changesCheck if --force flag is present in $ARGUMENTS.
force_mode = "--force" in arguments (case-insensitive)
The cursor-docs cache is located at:
${CLAUDE_PLUGIN_ROOT}/skills/cursor-docs/.cache/
Or via installed path:
~/.claude/plugins/cache/<marketplace>/cursor-ecosystem/<version>/skills/cursor-docs/.cache/
List the cache files:
| File | Purpose |
|---|---|
inverted_index.json | Search index |
cache_version.json | Hash-based validity tracking |
If cache directory doesn't exist or is empty, report: "Cache already clear. Nothing to do."
If NOT force_mode, present the cache clear plan:
## Cache Clear Plan
**Target:** Cursor documentation search index
| File | Size |
| --- | --- |
| inverted_index.json | X.X MB |
| cache_version.json | 512 bytes |
**Total:** X.X MB
> **Note:** The search index will rebuild automatically on the next documentation search.
> For immediate rebuild, run `/rebuild-cursor-docs-index` after clearing.
**Proceed?** Reply "yes" to continue, or use `--force` to skip this confirmation.
Use the clear_cache.py script to clear:
python "${CLAUDE_PLUGIN_ROOT}/skills/cursor-docs/scripts/maintenance/clear_cache.py"
## Cache Cleared
Successfully cleared Cursor documentation search cache.
**Cleared:**
- inverted_index.json
- cache_version.json
**Next steps:**
- Search index will rebuild automatically on next search
- Or run `/rebuild-cursor-docs-index` to rebuild immediately