I would like to automatically delete emails in my Gmail inbox that meet two criteria

:bullseye: What is your goal?

Hello dear community,

My name is Timo and I recently started using Make. I am currently practicing and would like to automatically delete emails in my Gmail inbox that meet these two criteria.

unsubscribe
promotions

Unfortunately, I keep getting this error message:

RuntimeError
[404] Requested entity was not found.

Origin
Gmail

Do you have any idea what I’m doing wrong?

I thought

  1. Open the module watch Email with the aforementioned requirements.
  2. Delete the emails seen in module 1.

Am I thinking wrong?

Thanks for your answers

Timo

:thinking: What is the problem & what have you tried?

RuntimeError
[404] Requested entity was not found.

Origin
Gmail

Hey Timo,
First of all, you could do it directly in Gmail by using a filter, but I guess you’re practicing using Make, so here’s why it may be erroring in Make:

The 404 error from Gmail usually means the message ID you’re trying to delete doesn’t exist.

In most cases, this happens because the wrong field is mapped in the “Delete an Email” module. Gmail returns multiple IDs (ID, Thread ID, etc.), and you must map the correct Message ID from the Watch Emails module.

If you accidentally map the Thread ID or any other field, you’ll get a 404.

It can also happen if the email was already deleted in a previous run and the scenario tries to delete it again.

2 Likes