How to delete groups in bulk

990 views
Skip to first unread message

Melancholy Ocelot

unread,
Jul 30, 2015, 4:43:22 PM7/30/15
to Google Apps Manager

Long story short, a 3rd party vendor created about 45k+ google groups that I need to kill. Luckily, they're all in a secondary domain.

1) Can I use wildcard * to select groups?

gam delete group *@domain.com

2) If wildcards do not work, can I export groups to a .csv? I haven't found a method yet, but if I can get my hands on the total list of groups, I can build a batch from there. I don't care about group membership. I only need the list.


Thanks

Jay Lee

unread,
Jul 30, 2015, 4:49:13 PM7/30/15
to google-ap...@googlegroups.com

Try:

gam print groups domain badsecondary.com

Which should print all the groups you want to delete. Assuming that works and you want to delete ALL those groups, try:

gam print groups domain bad secondary.com | gam csv - gam delete group ~Email

Which will delete all of those groups.

Jay

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f8ce7a6f-f75c-41f8-87be-902b2024e0f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Melancholy Ocelot

unread,
Jul 30, 2015, 5:18:29 PM7/30/15
to Google Apps Manager, Jay Lee
I think this is exactly what I'm looking for.  I'll play with the print syntax.
Reply all
Reply to author
Forward
0 new messages