cleanup-deleted

Installation
SKILL.md

Cleanup Deleted Telegram Accounts

Scan and purge deleted/ghost accounts from your Telegram dialog list and contacts. These are accounts that were deleted by their owners or banned by Telegram but still appear as "Deleted Account" in your chat list.

The script uses 3 progressively aggressive deletion methods because Telegram's dialog cache can be stubborn:

  1. delete_dialog — standard removal
  2. DeleteHistoryRequest — force-clear the conversation history
  3. Block + Unblock + delete — resets Telegram's peer state cache, then deletes

After the first pass, it re-scans for survivors and retries with method 3.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

Preflight

  1. Session must exist: ~/.local/share/telethon/<profile>.session
    • If missing, run /tlg:setup first
Related skills
Installs
28
GitHub Stars
44
First Seen
Mar 20, 2026