Skip to content

Symnok/DeleteHotmailOutlookContacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

DeleteHotmailOutlookContacts

Web UI of outllok.com does not allow to delete more than 50 contacts at ones (in some cases this limit is even 10 contacts)

This python3 program removes all contacts at ones.

  1. Install python3

  2. Install exchangelib: pip install exchangelib

  3. This program uses Basic Authentication (not OAUTH2) that still (as of Sept 1 2023) supported by Microsoft for outlook.com/hotmail.com The code uses MS Exchange server m.hotmail.com but you can modify the code to use any of the following URLs as of September 1 2023:

m.outlook.com

outlook.office365.com

eas.outlook.com

s.outlook.com

In the code, set your hotmail.com/outlook.com credentials in

ACCOUNT_USERNAME_AND_EMAIL

and

ACCOUNT_PASSWORD

  1. 2FA supported! If you use 2FA, generate application password and set its value to ACCOUNT_PASSWORD
  2. You must use modern OS that supports TLS 1.2. TLS 1.1 and below is not supported anymore by the corresponding Exchange servers

  1. Use this program on your own risk. It may contain bugs that can cause data loss, email loss, contacts loss, Microsoft/hotmail.com/outlook.com and any other account suspension, account deletion, permanent ban by Microsoft and other unexpected consequences. USE THIS PROGRAM ON YOUR OWN RISK!!!

6a. BACKUP YOUR CONTACTS BEFORE YOU RUN THIS PROGRAM! DO NOT RUN IT WITHOUT BACKUP!


  1. This program may not work if your account registered using non-Microsoft email address. Add Microsoft email address *@outlook.com) to your account, make it Default Alias and use this email with this program.

  2. Run this program as

    python3 deleteHotmailOutlookContacts.py

  3. On UI https://outlook.live.com/people/0/?actSwt=true turn ON New Contacts option. The program will work without this option too but you will not see if some contacts are stuck and not deleted

  4. You may need to run this program few times before all contacts are deleted. Wait 3-5 mins before second and additional runs. You may need to remove a few remaining contacts manually.

  5. Use following resources to learn how modify this program (for example, to add OAUTH2 support):

https://ecederstrand.github.io/exchangelib/#folders

https://ecederstrand.github.io/exchangelib/exchangelib/#exchangelib.Account.contacts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages