Loading...
Loading...
Remove TTS and Telegram sync components cleanly. TRIGGERS - uninstall tts, remove telegram bot, uninstall kokoro, clean tts, teardown, component removal.
npx skill4agent add terrylica/cc-skills clean-component-removalPlatform: macOS (Apple Silicon)
rmpkill| Step | Component | Command | Reversible? |
|---|---|---|---|
| 1 | Bot process | | Yes (restart bot) |
| 2 | Kokoro venv | | Yes (reinstall) |
| 3 | Shell symlinks | | Yes (re-symlink) |
| 4 | Temp files | | N/A |
| 5 | Secrets (optional) | | Requires re-creation |
| Resource | Path | Why Preserved |
|---|---|---|
| Model cache | | ~400MB download, reusable |
| Bot source code | | Git-tracked, not ephemeral |
| mise.toml config | | Configuration SSoT |
| Centralized logs | | Audit trail |
# Check if bot is running
pgrep -la 'bun.*src/main.ts'
# Stop it
pkill -f 'bun.*src/main.ts' || echo "Bot was not running"# Uses kokoro-install.sh --uninstall (removes venv, keeps model cache)
~/eon/cc-skills/plugins/tts-telegram-sync/scripts/kokoro-install.sh --uninstall# List existing symlinks first
ls -la ~/.local/bin/tts_*.sh 2>/dev/null
# Remove them
rm -f ~/.local/bin/tts_*.shrm -f /tmp/kokoro-tts-*.wav
rm -f /tmp/kokoro-tts.lock# Show what would be removed
ls -la ~/.claude/.secrets/ccterrybot-telegram
# Remove (requires confirmation)
rm -f ~/.claude/.secrets/ccterrybot-telegram1. [Confirm] Ask user which components to remove via AskUserQuestion
2. [Stop] Stop bot process
3. [Venv] Run kokoro-install.sh --uninstall
4. [Symlinks] Remove ~/.local/bin/ symlinks
5. [Temp] Clean /tmp/ TTS files
6. [Secrets] Optionally remove secrets (with confirmation)
7. [Verify] Confirm all selected components removedpgrep -la 'bun.*src/main.ts'ls ~/.local/share/kokoro/.venvls ~/.local/bin/tts_*.shls /tmp/kokoro-tts.lockpgrep -x afplay| Problem | Likely Cause | Fix |
|---|---|---|
| Symlinks still exist after removal | Glob mismatch or permission | |
| Stale lock after removal | Process died without cleanup | |
| Model cache taking space | ~400MB in HuggingFace cache | |
| Bot respawns after kill | Launched with | Check |
| Audio still playing after teardown | | |