Email Deletion

閲覧: 722 回
最初の未読メッセージにスキップ

Rajagopal Suresh

未読、
2021/08/23 2:34:482021/08/23
To: GAM for Google Workspace
Hi,


I am using the below command to delete emails from the inbox. Could you please guide me how can i delete emails prior to 2019 years emails from inbox or labels and certain date limit.

Command
gam user mye...@test.com delete messages query "in:inbox" max_to_delete 900000 doit

Ross Scroggs

未読、
2021/08/23 10:42:372021/08/23
To: google-ap...@googlegroups.com
Rajagopal,

It describes the query options.

Ross

--
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/9089e338-2a5a-4893-8a2e-fb8fdaab9551n%40googlegroups.com.


--

Rajagopal Suresh

未読、
2022/03/04 6:52:382022/03/04
To: GAM for Google Workspace
Hi,


Can you please give me gam command to delete emails between the date range from all the labels in GSuite accounts.

Ross Scroggs

未読、
2022/03/04 11:12:142022/03/04
To: google-ap...@googlegroups.com

Rajagopal Suresh

未読、
2022/03/07 5:39:572022/03/07
To: GAM for Google Workspace
Hi Ross,

The below GAM command is not deleting the emails after 31st Jan'22 emails in entire labels.

Please suggest and let me know the exact syntax to delete emails in one shot from all the labels in the email account.


gam user it-b...@test.com delete messages query after:2022/1/31

Ross Scroggs

未読、
2022/03/07 10:09:382022/03/07
To: google-ap...@googlegroups.com
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

You have to specify the maximum number of messages to delete and specify doit to conform deletion.

Rajagopal Suresh

未読、
2022/03/07 22:54:032022/03/07
To: GAM for Google Workspace
Thanks. It is working.

Rajagopal Suresh

未読、
2022/07/01 1:06:062022/07/01
To: GAM for Google Workspace
Hi Ross,

I am using this query gam user suresh.r...@test.com delete messages query "label:gsuit-alerts before:2022/01/31" max_to_delete 9000000 doit

Please guide me to exclude to delete emails that are directly marked to suresh.r...@test.com using the above command.

Thanks.

Ross Scroggs

未読、
2022/07/01 8:41:332022/07/01
To: google-ap...@googlegroups.com
See: https://support.google.com/mail/answer/7190

gam user suresh.r...@test.com delete messages query "label:gsuit-alerts before:2022/01/31 to:suresh.rajagopal@test.com" max_to_delete 9000000 doit

Ross

Rajagopal Suresh

未読、
2022/07/04 8:21:252022/07/04
To: GAM for Google Workspace
Hi Ross,

Thanks for your reply.

This query is deleting emails marked directly to suresh.r...@test.com. Actually, I do not want to delete emails directly marked to suresh.r...@test.com from that particular label and delete the remaining emails. Please help.

Ross Scroggs

未読、
2022/07/05 11:20:412022/07/05
To: google-ap...@googlegroups.com
This was your request: Please guide me to exclude to delete emails that are directly marked to suresh.r...@test.com using the above command.

Now you say: This query is deleting emails marked directly to suresh.r...@test.com. Actually, I do not want to delete emails directly marked to suresh.r...@test.com from that particular label and delete the remaining emails. Please help.


Contact me via Meet/Zoom so I can determine what you actually want.

Ross



--

Rajagopal Suresh

未読、
2022/07/22 2:36:032022/07/22
To: GAM for Google Workspace
Hi Ross,

sorry for the delayed response. I tried with the below query to solve my requirements.
gam user suresh.r...@test.com delete messages query "label:gsuit-alerts before:2022/07/01 !to:suresh.rajagopal@test" max_to_delete 9000000 doit

I need one more help to find out the size and email counts of each label on my account. 
to understand the storage where it is taking more space so please let me know the query if possible.

Ross Scroggs

未読、
2022/07/22 11:38:372022/07/22
To: google-ap...@googlegroups.com
Rajagopal,

Try this:

gam config csv_output_header_filter "User,Labels,SizeEstimate" redirect csv ./Messages.csv user us...@domain.com print messages showsize showlabels headers ""


You will get a row per message with its labels and size. You can process this data with a script to generate totals.


Ross




--

Ross Scroggs

未読、
2022/07/22 11:41:562022/07/22
To: google-ap...@googlegroups.com
Rajagopal,

This will give you label count information but no size information.

gam redirect csv ./LabelCounts.csv user us...@domain.com print labels showcounts


Ross

--

Ross Scroggs

未読、
2022/07/22 11:53:182022/07/22
To: google-ap...@googlegroups.com
Rajagopol,


Ross
--

Rajagopal Suresh

未読、
2022/07/26 2:02:472022/07/26
To: GAM for Google Workspace
Hi Ross,

Thank you so much for your help.

Rajagopal Suresh

未読、
2022/07/26 2:24:302022/07/26
To: GAM for Google Workspace
Hi Ross,

I am getting this error config is not a valid argument for "gam"  while trying gam config csv_output_header_filter "User,Labels,SizeEstimate" redirect csv ./Messages.csv user us...@domain.com print messages showsize showlabels headers ""

Also, getting similar error redirect is not a valid argument for "gam"  for this query gam redirect csv ./LabelCounts.csv user us...@domain.com print labels showcounts

Ross Scroggs

未読、
2022/07/26 9:35:402022/07/26
To: google-ap...@googlegroups.com

Rajagopal Suresh

未読、
2022/08/11 4:00:342022/08/11
To: GAM for Google Workspace
Hi,
Thanks.

I have installed AdvancedGAM and tried the below query but getting this ERROR: [Errno 11001] getaddrinfo failed (after got 398784 messages)

gam config csv_output_header_filter "User,Labels,SizeEstimate" redirect csv ./Messages.csv suresh@domain.com print messages showsize showlabels headers ""

Please suggest to me if you have any solution.

Rajagopal Suresh

未読、
2022/08/24 7:58:332022/08/24
To: GAM for Google Workspace
Hi,

I am getting the below error in the middle of the deleting of the emails using the below query.  Please help me to solve this issue.

GAMADV-XTD3 version is 6.25.17.
Error: 400: Precondition check failed. - filedprecondtion.

Query used: gam user te...@email.com delete messages query before:2020/12/31 max_to_delete 900000 doit

it was deleted 8650 / 49746 after that getting the above error. i have tried multiple times and upgraded with latest version of gamadv version but facing same issue. Request you to help me to solve this issue.

全員に返信
投稿者に返信
転送
新着メール 0 件