Plugin uninstall does not clean cache directory
Resolved 💬 3 comments Opened Apr 5, 2026 by don068589 Closed Apr 9, 2026
Description
When uninstalling a plugin using \claude plugins uninstall <plugin>\, the cache directory is not cleaned up.
Steps to reproduce
- Install a plugin: \claude plugins install telegram\
- Uninstall it: \claude plugins uninstall telegram\
- Check cache: Cache directory still exists at \~/.claude/plugins/cache/claude-plugins-official/telegram/\
Expected behavior
Option A: Uninstall should clean everything including cache
Option B: Add \--clean\ flag to allow users to choose thorough cleanup
Current behavior
- \installed_plugins.json\ is updated ✅
- \data/\ directory is cleaned ✅
- \cache/\ directory is NOT cleaned ❌
Workaround
Manually delete cache: \ m -rf ~/.claude/plugins/cache/claude-plugins-official/<plugin>\
Environment
- Claude Code version: Latest
- OS: Windows 11
- Plugin: telegram@0.0.4
Suggestion
Either:
- Clean cache by default during uninstall
- Add \claude plugins uninstall --clean\ option
- Add \claude plugins cache clean <plugin>\ command
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗