Skip to content

A Python tool that permanently deletes Gmail messages based on labels by threads

License

Notifications You must be signed in to change notification settings

wreckitkenny/cleanGmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cleanGmail

A Python tool that permanently deletes Gmail messages based on labels by threads

I. Create a credential for your email

1. Enable API: https://console.cloud.google.com/flows/enableapi?apiid=gmail.googleapis.com
2. Access Credentials: https://console.cloud.google.com/apis/credentials
3. Click Create Credentials > OAuth client ID.
4. Click Application type > Desktop app.
5. In the Name field, type a name for the credential. This name is only shown in the Google Cloud console.
6. Click Create. The OAuth client created screen appears, showing your new Client ID and Client secret.
7. Click OK. The newly created credential appears under OAuth 2.0 Client IDs.
8. Save the downloaded JSON file as credentials.json, and move the file to your working directory.

II. cleanGmail

1. Install requirements: pip/pip3 install -r requirements.txt
2. Help: python3 cleanGmail -h

Note: Put your credentials.json in the same working directory

About

A Python tool that permanently deletes Gmail messages based on labels by threads

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages