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

  1. Install a plugin: \claude plugins install telegram\
  2. Uninstall it: \claude plugins uninstall telegram\
  3. 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:

  1. Clean cache by default during uninstall
  2. Add \claude plugins uninstall --clean\ option
  3. Add \claude plugins cache clean <plugin>\ command

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗