Email Deletion

92 views
Skip to first unread message

Iftikhar Ahmad

unread,
Nov 20, 2024, 4:01:40 AM11/20/24
to GAM for Google Workspace
Hi  Ross Scroggs,

According to your Rajagopal Suresh's conversation we tried below command but show error please help me on priority. 
gam <UserTypeEntity> delete messages query <QueryGmail> [doit] [max_to_delete|max_to_process <Number>]

The command should be:
gam user it-b...@test.com delete messages query after:2022/01/31 max_to_delete 10000 doit

We face error - Service not applicable/Does not exist 

✉ Kevin Melillo

unread,
Nov 20, 2024, 7:35:52 AM11/20/24
to google-ap...@googlegroups.com
Is it your intention to delete all messages that were delivered AFTER January 31st, 2022?  That removes the most recent emails.  Usually if you are trying to save space, you delete older messages.  Also, are you the controller of the domain test.com, or is that a placeholder for security?

The command:
gam user <email> delete messages query "after:2022/01/31" max_to_delete 10000 doit


--
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 visit https://groups.google.com/d/msgid/google-apps-manager/db4f3b5e-3962-415f-8628-c638c51f8ee3n%40googlegroups.com.

Iftikhar Ahmad

unread,
Nov 20, 2024, 7:48:59 AM11/20/24
to GAM for Google Workspace
can we check all mail total count with date wise and label wise. 

Ross Scroggs

unread,
Nov 20, 2024, 10:17:25 AM11/20/24
to google-ap...@googlegroups.com
That message indicates that it-b...@test.com does not hve Gmail enabled; it the address in ain OU with Gmail disabled.

Have you enabled service account access?
gam user it-b...@test.com check serviceaccount

Ross
----
Ross Scroggs



Ross Scroggs

unread,
Nov 20, 2024, 10:38:51 AM11/20/24
to google-ap...@googlegroups.com

Iftikhar Ahmad

unread,
Nov 21, 2024, 3:34:47 AM11/21/24
to GAM for Google Workspace
Thank you for your support Ross.

Iftikhar Ahmad

unread,
Nov 26, 2024, 7:10:00 AM11/26/24
to GAM for Google Workspace
Hi Ross,

Can i download user mail on pst format for backup purpose. 

Ross Scroggs

unread,
Nov 26, 2024, 11:27:38 AM11/26/24
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages