How to move email to gmail trash using move imap in ui path

Hi,
Myself Rial I am working on Email Automation where i want to delete email on some condition. I am using get imap and move imap which is working flawlessly.

But the issue is when i move email to trash it wont work. otherwise for any subfolder it work properly.

I want to know is there any way where i can move my emails to trash directly?

Use destination Folder name as “[Gmail]/Trash”. Try it out. Hope it helps

2 Likes

and what is the equivalent for outlook junk mail folder please ?