I was thinking last night about using GAM to remove old domain contacts from our staff's contacts list. What I came up with was to dump all users in our inactive user OU, run GAM commands to turn off GAL for all of those users, and then run again to delete the contacts. The turn-off GAL was quick and easy, but the delete contacts appear to run forever. Plus, it won't delete any domain contacts that have been deleted from our Workspace. Ideally, I want to remove any past accounts of our primary domain only, not our student domain, disabled or deleted, and completely remove them from our staff's contacts. I'm sure this could have been done differently in the first place.
gam print users query orgunitpath="'/Inactive Users'">SuspendedUsers.csv
gam csv ./SuspendedUsers.csv gam update user ~primaryEmail gal off
gam redirect csv ./SuspendedUsers.csv multiprocess csv ./SuspendedUsers.csv gam all users_ns clear contacts emailmatchpattern '~~primaryEmail~~' delete_cleared_contacts_with_no_emails