Remove email from user's directory

40 views
Skip to first unread message

Brian Lee

unread,
Sep 22, 2026, 11:59:10 AMSep 22
to GAM for Google Workspace
Hello,

There was an incident with users sending emails to a fake user within my organization. I was wondering if this was the right command to remove them from all our user's directory:

gam all users delete othercontacts emailmatchpattern "fakeuser[@]domain.com" fields email

Ross Scroggs

unread,
Sep 22, 2026, 12:05:25 PMSep 22
to google-ap...@googlegroups.com
Drop "fields email", then you're good to go.

Ross
----
Ross Scroggs



--
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 visit https://groups.google.com/d/msgid/google-apps-manager/b4a99848-70e5-48d1-8a22-3936dfb33be8n%40googlegroups.com.

Brian Lee

unread,
Sep 22, 2026, 12:52:27 PMSep 22
to GAM for Google Workspace
Thank you!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages