Clear codex cache entries (all, expired, or by pattern)
Removes entries from the codex cache by expiration, project, or pattern matching.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-codex@fractaryclaude-haiku-4-5Remove entries from the codex cache. Cache is ephemeral and regeneratable - clearing does not affect source documents.
/fractary-codex:cache-clear [OPTIONS]
At least one option is required:
--all: Clear entire cache (requires confirmation)--expired: Clear only expired cache entries--project <name>: Clear all entries for a specific project--pattern <glob>: Clear entries matching glob pattern--dry-run: Show what would be deleted without actually deletingClear expired entries (safe, no confirmation needed):
/fractary-codex:cache-clear --expired
Clear specific project:
/fractary-codex:cache-clear --project auth-service
Clear by pattern:
/fractary-codex:cache-clear --pattern "@codex/*/README.md"
Clear entire cache (requires confirmation):
/fractary-codex:cache-clear --all
Preview what would be deleted:
/fractary-codex:cache-clear --expired --dry-run
Dry-run:
š DRY-RUN: Cache Clear Preview
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Would delete 4 entries:
ā @codex/old-service/README.md (5.1 KB)
Reason: Expired 5 days ago
ā @codex/deprecated/guide.md (3.2 KB)
Reason: Expired 7 days ago
Total to delete: 8.3 KB
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Run without --dry-run to execute
Actual deletion:
šļø CACHE CLEAR COMPLETED
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Deleted 4 entries (8.3 KB):
ā @codex/old-service/README.md
ā @codex/deprecated/guide.md
ā @codex/temp-service/notes.md
ā @codex/archived/spec.md
Cache stats updated:
- Total entries: 38 (was 42)
- Total size: 3.1 MB (was 3.2 MB)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Cache index updated: codex/.cache-index.json
--all) requires user confirmationClear expired entries regularly:
/fractary-codex:cache-clear --expired
Clear when switching contexts:
/fractary-codex:cache-clear --project old-project
Clear after major codex updates:
/fractary-codex:cache-clear --all
All cleared entries will be automatically re-fetched when accessed:
/fractary-codex:fetch will retrieve from source/fractary-codex:fetch - Fetch documents (populates cache)/fractary-codex:cache-list - View cache status/fractary-codex:init - Configure codex pluginUSE AGENT: @agent-fractary-codex:codex-manager Operation: cache-clear Parameters: { scope: <all|expired|project|pattern>, filter: { project: <from-flag>, pattern: <from-flag> }, dry_run: <from-flag> }