{"version":"2.1.248","anchor":"skills-sync-cleans-up-its-folder-when-the-feature-is-off","canonical_anchor":"skills-sync-cleans-up-its-folder-when-the-feature-is-off","heading":"Skills sync cleans up its folder when the feature is off","tier":"internal","area":"Skills","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/skills-sync-cleans-up-its-folder-when-the-feature-is-off","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Skills sync cleans up its folder when the feature is off\n\nTurning skills sync off now clears out its leftover folder contents.\n\n**What**\n\nNew code can clear the skills sync directory when the feature is turned off, trashing stray entries and moving bucket contents out, and it logs how many items it moved.\n\n**Details**\n\n- Events recorded are `skills_sync_stray_entry_trashed` and `skills_sync_pruned_for_closed_gate` with a moved count; a sync root that fails validation logs `skills_sync_root_refused` with phase \"prune\" and nothing is touched.\n- The prune runs only if a helper check passes; that check returns early otherwise, and what decides it is not visible in this build.\n\n**Evidence**\n\n`skills_sync_pruned_for_closed_gate`\n\n- Area: Skills\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}