Skip to content

Instantly share code, notes, and snippets.

View sangram-chavan's full-sized avatar
💭
Looking for Opportunity

Sangram Chavan sangram-chavan

💭
Looking for Opportunity
View GitHub Profile
@sangram-chavan
sangram-chavan / README.md
Created March 18, 2020 14:38 — forked from jamesramsay/README.md
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted