Skip to content

Instantly share code, notes, and snippets.

View a10kiloham's full-sized avatar

a10kiloham a10kiloham

  • London, UK
View GitHub Profile
@a10kiloham
a10kiloham / README.md
Last active March 7, 2020 10:08 — forked from jamesramsay/README.md
Gmail: delete old emails automatically

Gmail: delete old emails automatically (2020 update with small fixes)

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