{"version":"2.1.236","anchor":"plugin-sync-clears-out-leftover-plugin-directories","canonical_anchor":"plugin-sync-clears-out-leftover-plugin-directories","heading":"Plugin sync clears out leftover plugin directories","tier":"notice","area":"Plugins","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.236\/e\/plugin-sync-clears-out-leftover-plugin-directories","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.236","markdown":"### Plugin sync clears out leftover plugin directories\n\nLeftover directories from removed plugins get swept to trash after a managed sync.\n\n**What**\n\nAfter a managed-plugin sync, any directory in the plugins folder that belongs to no known plugin and is not already recorded as stale is moved to the trash folder. This runs on both the no-changes and the changed sync paths, with no flag behind it.\n\n**Details**\n\n- Each removal is gated on the sync guard's `verify()` check before anything is moved.\n- Removals are counted in a new `plugins_sync_orphan_dir_trashed` event.\n\n**Evidence**\n\n`plugins_sync_orphan_dir_trashed`\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}