Say goodbye to clutter—wipe your entire Telegram Web chat list in just minutes!
This handy userscript allows you to bulk delete or leave chats (whether they’re direct messages, groups, channels, or bots) while giving you a user-friendly overlay that shows your progress.
- Are you overwhelmed with too many chats piling up?
- Tired of clicking "delete" or "leave" for each chat one by one?
- Want to refresh your Telegram experience without spending hours on it?
This script automates the process for you, saving you time and effort! It keeps your Saved Messages intact by default and provides a pleasant progress display while it works.
- Deletes or leaves all chats (or almost everything)
- Option to preserve Saved Messages (highly recommended)
- Live counter with a breakdown by chat type
- A sleek, dark modal UI that mirrors the Telegram aesthetic
- Double confirmation step to prevent accidental deletions
- Automatically skips problematic or restricted chats
- Clear console logging to help with any debugging issues
- Access to Telegram Web → Visit here
- A modern browser (Chrome, Edge, Firefox, etc.)
- Open Telegram Web and log in.
- Press F12 (or right-click and select "Inspect") and navigate to the Console tab.
- Copy and paste the entire content of
telegram-auto-delete.jsinto the console. - Press Enter.
→ You’ll see a small control panel appear in the center of your screen!
- (Optional) If you want to delete your Saved Messages too, uncheck the "Keep Saved Messages" option.
- Click Start, confirm your choice, then sit back and relax while it works its magic.
Important: Please do not interact with the tab while it’s running.
Duration: Typically, it takes between 1 to 5 minutes, depending on how many chats you have.
| Chat Type | Action Taken | Visible to Others? |
|---|---|---|
| Private (DM) | Chat deleted | Yes (deleted for both) |
| Group | Left the group | No (you just disappear) |
| Channel | Left the channel | No |
| Bot | Chat deleted (sometimes blocked) | Usually no |
| Saved Messages | Preserved (default setting) | — |
Rest assured, your contacts, profile, and any groups you manage remain completely safe during this process.
This script is released under the MIT License.
Feel free to fork, modify, or share it—there are no restrictions.
I created this tool because I was tired of spending over 40 minutes manually cleaning up over 500 chats. I hope it helps you save time and hassle too!
Feel free to reach out with PRs, issues, or suggestions. Your feedback is always welcome


