{"version":"2.1.280","anchor":"plugin-uninstall-no-longer-deletes-a-data-directory-shared-b","canonical_anchor":"plugin-uninstall-no-longer-deletes-a-data-directory-shared-b","heading":"Plugin removal no longer deletes data directories shared by same-named plugins in other scopes","tier":"notice","area":"Plugins","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/plugin-uninstall-no-longer-deletes-a-data-directory-shared-b","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### Plugin removal no longer deletes data directories shared by same-named plugins in other scopes\n\nRemoving a plugin now checks if another same-named plugin elsewhere shares its data directory before deleting it\n\n**What**\n\nWhen Claude Code removes plugins, whether by removing a whole marketplace or uninstalling plugins by author, it now checks whether a removed plugin's name (matched case-insensitively) is also used by another still-installed plugin in a different scope. Those plugin ids are collected into a new `sharedDataDirPluginIds` set and returned alongside the usual orphaned paths and removed plugin ids.\n\nPreviously, every removed plugin's on-disk data directory was deleted unconditionally. Now, if a removed plugin's id is in `sharedDataDirPluginIds`, its data directory is left alone instead of being deleted.\n\n**Why**\n\nTwo plugins with the same name in different scopes could previously lose their shared data when only one of them was removed. This change avoids destroying data that another still-installed, same-named plugin still needs.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}