[BUG] Running `/plugin uninstall <plugin-name>` removes the plugin entry from `installed_plugins.json` but leaves the cached plugin files on disk.

Resolved 💬 3 comments Opened Mar 18, 2026 by mittalsam98 Closed Mar 21, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

## Expected Behavior
The plugin's cache directory (~/.claude/plugins/cache/<plugin-name>/)
should be deleted as part of the uninstall process.

## Actual Behavior
installed_plugins.json is correctly updated (plugin entry removed), but
~/.claude/plugins/cache/<plugin-name>/ remains on disk as orphaned data.

In my case, everything-claude-code left behind ~22MB of orphaned cache
files that had to be manually deleted.

## Workaround
Manually delete the cache directory:
rm -rf ~/.claude/plugins/cache/<plugin-name>/

What Should Happen?

Should automatically delete the cache folder

Error Messages/Logs

Steps to Reproduce

## Steps to Reproduce

  1. Install a plugin: /plugin install everything-claude-code
  2. Uninstall it: /plugin uninstall everything-claude-code
  3. Check the cache: ls ~/.claude/plugins/cache/

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.78

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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