- Visit https://support.google.com/accounts/answer/185833 for full guide.
- Select
Mail
in App andOther
in Device
- Default it will delete all email which contains
Custom String
in subject. Change it in line 5. - To delete all email from a specific sender, replace line 10 with
typ, data = box.search(None, 'from', 'specific@sender.email')
- To delete all unread email, replace line 10 with
typ, data = box.search(None, 'UnSeen') or set value of query to
UnSeen`