claude-code - 💡(How to fix) Fix Plugin uninstall does not fully clean up across all scopes [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50726Fetched 2026-04-20 12:14:46
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

When a plugin is installed at multiple scopes during testing (local + user), /plugin uninstall only removes one scope. The enabledPlugins entry remains in other settings files, causing the plugin to appear as still installed.

Root Cause

When a plugin is installed at multiple scopes during testing (local + user), /plugin uninstall only removes one scope. The enabledPlugins entry remains in other settings files, causing the plugin to appear as still installed.

Fix Action

Fix / Workaround

Current Workaround

RAW_BUFFERClick to expand / collapse

Summary

When a plugin is installed at multiple scopes during testing (local + user), /plugin uninstall only removes one scope. The enabledPlugins entry remains in other settings files, causing the plugin to appear as still installed.

Steps to Reproduce

  1. /plugin install plugin-name@marketplace — select "Install for you (user scope)"
  2. /plugin install plugin-name@marketplace — select "Install for you, in this repo only (local scope)"
  3. /plugin uninstall plugin-name@marketplace — removes from one scope
  4. Plugin still appears as installed (entry remains in the other settings file)

Expected Behavior

Either:

  • /plugin uninstall removes the plugin from all scopes where it is installed
  • Or /plugin uninstall prompts the user to select which scope(s) to uninstall from (similar to the install prompt)
  • No orphaned enabledPlugins entries should remain after uninstall

Current Workaround

Users must manually edit ~/.claude/settings.json or .claude/settings.local.json to remove the leftover enabledPlugins entry.

Environment

  • Windows 11 Pro
  • Claude Code CLI

extent analysis

TL;DR

The issue can be mitigated by modifying the /plugin uninstall command to remove the plugin from all scopes or by prompting the user to select which scope to uninstall from.

Guidance

  • The current implementation of /plugin uninstall only removes the plugin from one scope, leaving behind enabledPlugins entries in other settings files.
  • To verify the issue, check the enabledPlugins entries in both ~/.claude/settings.json and .claude/settings.local.json after running /plugin uninstall.
  • A potential workaround is to modify the uninstall command to accept an optional --scope parameter, allowing users to specify which scope to uninstall from.
  • The enabledPlugins entries should be updated accordingly to reflect the uninstallation.

Example

No code snippet is provided as the issue does not contain sufficient information about the implementation details.

Notes

The solution may require modifications to the Claude Code CLI and its underlying settings management system. The exact implementation details are not provided in the issue.

Recommendation

Apply workaround: Modify the /plugin uninstall command to accept an optional --scope parameter or prompt the user to select which scope to uninstall from, to ensure that the plugin is properly removed from all scopes. This approach allows for a more flexible and user-friendly uninstallation process.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Plugin uninstall does not fully clean up across all scopes [1 participants]