Skip to content

eyecatchup/gmail-bulkdelete-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bulk delete Gmail messages

Ever needed to permanently delete 1000+ Gmail messages? It's a real pain, using the web interface!

This tiny Nodejs script lets you bulk delete messages by search query with ease, using the Gmail API.

How to use

Example queries:

  • has:attachment larger:5M - Delete all emails with attachments larger than 5 Mb
  • older_than:1y is:unread - Delete all unread emails which are older than 1 year
  • before:2015/01/01 - Delete all emails received before 1st Jan 2015
  • label:promotions is:unread -google - Delete all unread emails labeled with "Promotions", if they don't contain the keyword "google"
  • from:notifications@facebookmail.com - Delete all Facebook notifications
  • in:trash - Delete all emails in trash

Here's a complete list of available Gmail search operators: https://support.google.com/mail/answer/7190?hl=en

Warranty

I wrote this for private use soley, to clean up my 10 year old Gmail inbox faster. No warranty, no support. Feel free to use.

About

Bulk delete Gmail messages, using the Gmail API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published