Skip to content

Instantly share code, notes, and snippets.

View dickermoshe's full-sized avatar

Moshe Dicker dickermoshe

  • Lakewood, NJ
View GitHub Profile
@dickermoshe
dickermoshe / Wipe_Gmail_Account.py
Created December 20, 2021 05:33
This small python script will Permanently wipe emails based on a search phrase that is used on the Gmail website
import imaplib
# account credentials and other configs
# replace with you Gmail username and password
username = "replace with your Gmail username"
password = "replace with your Gmail password"
# Search query to delete
# Make sure to leave the single and double quotes
# Example >>> gmail_search = '"from:me"'
gmail_search = '"replace with your Search Phrase"'