Gmail Delete Msg Action (noobish)

Describe the problem/error/question

I am using the default gmail trigger to test out simple automation such as if I get an email from certain email address, mark as read and then delete. To clean up promotional emails and marketing emails. I am able to connect to gmail with n8n and have it retrieve most recent emails and also filter for certain marketing emails based on the sender’s email address. The problem is when I use the Gmail node to delete or mark the messages as read. The workflow shows it successfully marked the emails as read or delete but I dont see it go to the trash. I tried to delete a list of email by using Tableid or Threadid from get email gmail node.

Closeest forum post I saw I think similar to my problem was this Other Thread , But I wasn’t sure what Jan meant by “Format”. Coding noob here.

What is the error message (if any)?

No error appears,

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • 1.77.3
  • Database (default: SQLite):
  • SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Default
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Docker
  • Operating system:
  • Windows 11

Can you please share the workflow set to delete the email?
The one you shared marks as read.

I may be able to further assist you if I have more information about the workflow settings

Sorry about the delay, I was able to get it to work after signing up for a n8n cloud account then retrying it on my local host, The API was working correctly after that. Not sure what was being blocked but it work effortlessly after I created a n8n cloud account.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.