Skip to content

Instantly share code, notes, and snippets.

@amalmurali47
Created May 1, 2019 18:31
Show Gist options
  • Save amalmurali47/e4bfcc9e0df17a27cf799c78558e6cf6 to your computer and use it in GitHub Desktop.
Save amalmurali47/e4bfcc9e0df17a27cf799c78558e6cf6 to your computer and use it in GitHub Desktop.
Delete all Telegram contacts.

How to delete all your Telegram contacts at once?

  1. Go to https://web.telegram.org and sign in if you're not already signed in.
  2. On the top-left, click on the hamburger icon to show the dropdown menu, and choose "Contacts" from the list.
  3. Choose "Edit".
  4. Open the Developer Console of your browser (preferably Chrome or Firefox). On Chrome, that is Ctrl + Shift + J.
  5. Run the following JS snippet:
var x = document.getElementsByClassName('contacts_modal_contact')
for (i=0; i<x.length; i++) {
    x[i].click();
}
  1. It selects all your contacts. Click on the "Delete" button.
@abbasudo
Copy link

This doesn't work on latest version as of jan 2022.

@oleg-rom from the top menu you have to chose the switch to old version since the new version dosent support editing contacts

image

@a-v-ebrahimi
Copy link

It's not there any more, just A version and K version

@inkardash
Copy link

It's not there any more, just A version and K version

https://web.telegram.org/?legacy=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment