{"version":"2.1.247","anchor":"replacing-a-cached-plugin-no-longer-leaves-a-half-deleted-di","canonical_anchor":"replacing-a-cached-plugin-no-longer-leaves-a-half-deleted-di","heading":"Replacing a cached plugin no longer leaves a half-deleted directory","tier":"notice","area":"Plugins","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247\/e\/replacing-a-cached-plugin-no-longer-leaves-a-half-deleted-di","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247","markdown":"### Replacing a cached plugin no longer leaves a half-deleted directory\n\nReinstalling a plugin over a cached copy can no longer leave you with a half-deleted directory.\n\n**What**\n\nInstalling over a cached plugin now renames the old copy aside first and deletes it only after the new content is in place, restoring the old directory if the move fails. A broken install can no longer leave you with nothing.\n\n**Details**\n\n- Temporary directories are siblings prefixed `.claude-plugin-temp-`.\n- If the rename cannot be done at all, the code deletes in place as before and logs that choice at debug level.\n\n**Evidence**\n\n`removing it in place instead`\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}