{"version":"2.1.121","anchor":"plugin-prune-command","canonical_anchor":"plugin-prune-command","heading":"Plugin Prune Command","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121\/e\/plugin-prune-command","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.121","markdown":"### Plugin Prune Command\n\n**What**\n\nNew `claude plugin prune` subcommand removes auto-installed plugin dependencies that are no longer needed by any active plugin.\n\n**Usage**\n\n`# List orphaned plugins without removing them claude plugin prune --dry-run # Remove orphans at user scope claude plugin prune # Remove at project scope claude plugin prune --scope project # Skip confirmation prompt (for CI) claude plugin prune -y # Also prune during uninstall claude plugin uninstall my-plugin --prune` **Details** - Detects auto-installed dependencies that no longer have a parent plugin requiring them - Supports scopes: user, project, or local - Dry-run mode shows what would be removed without acting - Non-TTY environments require `-y` flag - Reports which plugins were removed and their count - Integrates with `plugin uninstall --prune` for cleanup during uninstall - Telemetry event `tengu_plugin_prune_cli` tracks usage **Evidence** Plugin prune handler (search for `\"plugin prune\"`, `\"Nothing to prune\"`, `\"no longer needed\"`)"}