
Run the script to move the emails labeled as ‘delete me’ to Trash older. Var label = GmailApp.getUserLabelByName(“delete me”) įor (var i = 0 i Current project’s triggers and make it to run on a pre-minute, hourly or daily basis. Var delayDays = 2 // Enter # of days before messages are moved to trash

There’s no such feature native to the app, so you’ll have to find another approach. You will have to copy and paste the below script in the new file and run it from the Run menu. Unfortunately, the iOS version of the Gmail app doesn’t allow you to delete all emails. Step 1: Go to Google Scripts and create a new blank project.

Quickly review groups of messages that Clean Email has selected for deletion, then take one bulk action to delete all emails. It automates how emails are filtered and grouped based on your user history and any rules you set. Label the filter as ‘delete me’ and apply it to all the existing messages. I clicked on Gmail under the resources tab of the Google App script-editing page, I set. An inbox cleaning app like Clean Email is the fastest way to delete thousands of messages in Gmail. Here, you will find options to create a filter. To do that, you can create filters in GMail, by clicking the gear wheel on the top-right corner and select settings, Filters tab and click the ‘Create a new filter” link at the bottom. This is possible using Google scripts.Īll you need to do is, try to filter the emails that are mostly useless to you. For example, most of you might receive promotional and offer coupons from various service providers which can be auto deleted after their expiry dates (probably after two days). A bit of script in Google Apps can automatically archive or delete old emails based on the schedule you had set and keeps your inbox a lot more cleaner.

But you can clean up old emails after a set number of days. Can you make your GMail inbox with zero emails? Probably, that’s not possible (at least for some people).
