← ClaudeAtlas

syncthing-cleanuplisted

Use when cleaning up Syncthing sync folders with conflict files (.sync-conflict-*), empty directories, temporary files, or other unexpected artifacts.
xjsongphy/skills · ★ 6 · AI & Automation · score 68
Install: claude install-skill xjsongphy/skills
# Syncthing Cleanup ## Overview Syncthing creates various temporary and conflict files during synchronization, which accumulate over time and may appear as "unexpected items" in the Web UI. This skill identifies and safely removes these artifacts. ## Quick Start To clean up Syncthing folders: ```bash # Run the cleanup script scripts/cleanup_syncthing.py ``` The script will: 1. Locate Syncthing configuration and sync folders 2. Scan for unexpected items 3. Show what will be deleted 4. Ask for confirmation before deleting 5. Trigger rescan and report results ## What Gets Cleaned ### Conflict Files - `.sync-conflict-*` - Created when multiple devices modify the same file simultaneously ### Empty Directories - Empty directories within `.syncthing-enc` folders (encrypted storage) ### Temporary Files - `*.swp`, `*.swo` - Vim swap files - `*~` - Backup files - `.DS_Store` - macOS metadata files - `Thumbs.db` - Windows thumbnail cache - `*.tmp` - Generic temporary files ### Broken Symlinks - Symbolic links pointing to non-existent targets ## Using the Cleanup Script ### Basic Usage ```bash # Interactive mode (asks before deleting) scripts/cleanup_syncthing.py # Dry run (show what would be deleted) scripts/cleanup_syncthing.py --dry-run # Silent mode (delete without asking) scripts/cleanup_syncthing.py --yes # Clean specific folders only scripts/cleanup_syncthing.py --folders ~/Develop ~/Codes # Verbose output scripts/cleanup_syncthing.py --verbose ``` ### Script Op