Google Apps Script – delete a email – part 029.

This is simple to do.
Open a GAS script in google editor.
You can use the google drive menu NewGoogle Apps Script or create a new document and use from menu: ToolsScript editor to open a new google apps script editor.
Select Gmail A.P.I. from the menu: ResourcesAdvanced Google services … to use Gmail features.
Send an email from another account with the text test001catafest in title or body email.
Add this source code in the Google script editor, run it, give the permission to use the script.

The email received by gmail account is deleted.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.