can GAM delete emails from a mailbox ?

758 views
Skip to first unread message

Angelo

unread,
Jul 10, 2018, 11:22:22 AM7/10/18
to GAM for G Suite
Hi, i was reading this post

I am running 3.75
[gapps2@ga-opt-in tools]$ python ./gam.py version
GAM 3.75.00 - https://github.com/taers232c/GAM-N
Ross Scroggs <ross.s...@gmail.com>
Python 2.6.6 64-bit final
google-api-python-client 1.5.1
Linux-2.6.32-696.30.1.el6.x86_64-x86_64-with-redhat-6.9-Santiago x86_64
Path: /home/gapps2/tools

I tested what API's are enabled:

I checked my current project and i have GAM 3.75 and these are enabled

 The APIs are enabled

Admin SDK, Apps Activity API, Google Calendar API, Google Classroom API,
Google Drive API, Gmail API, Groups Settings API, Enterprise License Manager API,
Google+ API, Contacts API have been enabled.

Would i need a new project to fix these errors ? As the emails i am testing are not getting deleted. Thanks for any help.

[gapps2@ga-opt-in tools]$ python ./gam.py user angelo....@uconn.edu delete messages query rfc822msgid:BN3PR05MB24179A5112...@BN3PR05MB2417.namprd05.prod.outlook.com
Searching messages for angelo....@uconn.edu
Got 1 messages for user angelo....@uconn.edu
would try to delete 1 messages for user angelo....@uconn.edu (max 1)


✉ Kevin Melillo

unread,
Jul 10, 2018, 11:24:51 AM7/10/18
to google-ap...@googlegroups.com
You need to include the keyword doit otherwise, it just reports the information, and does not actually delete any email messages.

python ./gam.py user angelo....@uconn.edu delete messages query rfc822msgid:BN3PR05MB24179A5112...@BN3PR05MB2417.namprd05.prod.outlook.com maxtodelete 1 doit

--
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/f69fd015-0303-41b4-b8df-18fac6ac4980%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

Phone:732-465-6609 | Mobile: 732-609-4331

Angelo

unread,
Jul 10, 2018, 11:41:05 AM7/10/18
to GAM for G Suite
Thanks, that worked like a charm.
Case closed.
-ALF
Reply all
Reply to author
Forward
0 new messages