--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/ad40f917-8bbd-41e3-a302-a94b349b1c5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp82cT6HSbCp9RwGQ2gTa2LQa%3DH-ADynwTZ-TBMW1RM0JQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
gam all users delete messages query "subject:'Bad Email Subject' AND after:2018/06/14" max_to_delete 10 doitTo be safe, I would also use the AND after: modifier, so you will only delete emails for that subject that came after the bad email started.
On Fri, Jun 15, 2018 at 9:37 AM Jay Lee <jay...@gmail.com> wrote:
Try:gam print users | gam csv - gam user ~primaryEmail delete messages query "subject:Bad Email Subject" doit maxtodelete 1
- Using "gam print users" and piping it into CSV allows GAM to run against 20 users at a time instead of single file. The process will go MUCH quicker.
- The maxtodelete NN argument tells GAM how many messages it's allowed to delete from a user's mailbox and defaults to zero. We want to play it really safe when deleting user data.
Jay
On Fri, Jun 15, 2018 at 9:34 AM Chris Medina <crme...@aggies.ncat.edu> wrote:
I am trying to delete bulk email by subject using : gam all users delete messages query "subject:'Bad Email Subject'" doit--I get a WARNING: refusing to delete ANY messages for 12...@domain.com since max messages to process is 1 and messages to be deleted is 3 (12345 is the users name for example)How can I delete more than say 10 messages for a user?
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/ad40f917-8bbd-41e3-a302-a94b349b1c5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp82cT6HSbCp9RwGQ2gTa2LQa%3DH-ADynwTZ-TBMW1RM0JQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Kevin MelilloElectronic Communications AnalystInformation TechnologyPhone:732-465-6609 | Mobile: 732-609-4331E-mail: k.me...@ieee.org
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAKM%3DboYMU-1T1vznGFaqn4dbq1i3cQ3u1khkh3HbEzs%3DO_Cx5A%40mail.gmail.com.