This is an "delete Gmail email by SpecificLabel" task automation tool based on Selenium for lazy people like me. I've built it for my self and thought, why not share with world! Here it is, it's not perfect but it's get the job done for me. Please, change it as your need.
Note: Currently it supports only Windows and Linux and also your Gmail language settings must be English. Only Chrome driver is supported for Selenium :(
Here's some instruction which will help you to get up and running with this tool.
- Install python and pip for your platform
- Open terminal
- Run
pip install selenium
(For Linux usesudo
) - Clone the repository
- Enter into this directory
- Run
python gmail_delete_mesage_by_label.py
At this point the script will ask for 3 things,
- Your Gmail username/email
- Your account password (Don't worry nobody will see them)
- Specific Label name (of which emails you want to delete)
A browser will pop up and do all the things on behalf of you. Just sit back and observer :)