GAM delete email from single inbox is not working from my id

113 views
Skip to first unread message

Mubarak Zubair H

unread,
Feb 13, 2024, 5:37:49 AM2/13/24
to GAM for Google Workspace
Hi Everyone, 

I am able to run command for deleted email for all 
"gam all users delete messages query rfc822msgid:<message ID> doit"  its working.

unfortunately if i am trying to run command where "gam user <email id> delete messages query “rfc822msgid:<message id >” doit" returns with 0 messages, Messages: 0, Not Deleted: No Messages matched. even though there is an email with the message id.

Tried with both GAM basic and GAM XTD3 same outcome not able to run command to delete email from single inbox, 




This information may be confidential and/or privileged. Use of this information by anyone other than the intended recipient is prohibited. If you receive this in error, please inform the sender and remove any record of this message

✉ Kevin Melillo

unread,
Feb 13, 2024, 7:32:21 AM2/13/24
to google-ap...@googlegroups.com
Why are you using quotes around the messageID in the second example?  There are no spaces, so quotes shouldn't be needed.  You also do not need the DOIT until messages is not 0.


--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b393c4b1-2ef2-4043-b3ab-4927ef31eda9n%40googlegroups.com.

Ross Scroggs

unread,
Feb 13, 2024, 9:54:33 AM2/13/24
to google-ap...@googlegroups.com
Your query “rfc822msgid:<message id >” is using smart/curly quotes, replace them with straight quotes.

Ross
----
Ross Scroggs



Mubarak Zubair H

unread,
Feb 14, 2024, 4:28:31 AM2/14/24
to google-ap...@googlegroups.com
Thank you, Kevin and Ross. Removing the quotes around the message ID did the trick.

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/DA8IbnORAe0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/10FBD71B-5823-485A-A704-7161A2EBA98D%40gmail.com.
Reply all
Reply to author
Forward
0 new messages