Manage Mobile Devices

32 views
Skip to first unread message

Don Beck

unread,
Sep 9, 2025, 1:04:40 PM (7 days ago) Sep 9
to GAM for Google Workspace
I ran this command:
gam print mobile todrive

I now have a long list of many outdated devices that are no longer in use

Is there a way to run a command to delete any divice that hasn't sync'd in say 6 months based on the last sync column?

Thanks 
Don

Ross Scroggs

unread,
Sep 9, 2025, 4:18:15 PM (7 days ago) Sep 9
to google-ap...@googlegroups.com
gam redirect csv ./OldSyncMobile.csv print mobile fields lastsync,serialnumber,name,email,status querytime180d -180d query "sync:..#querytime180d#"
gam redirect stdout ./DeleteOldSyncMobile.txt multiprocess redirect stderr stdout csv OldSyncMobile.csv gam delete mobile "~resourceId"

Ross
----
Ross Scroggs



PLEASE NOTE
The information in this E-Mail message is legally privileged and confidential information intended only for the use of the individual(s) named above.  If you, the reader of this message, are not the intended recipient, you are hereby notified that you should not further disseminate, distribute, or forward this E-mail message.  If you have received this E-mail in error, please notify the sender. Thank you!

--
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/8aec3508-8efd-4289-93ef-94ccdea683b6n%40googlegroups.com.

Jay Lee

unread,
Sep 9, 2025, 4:27:15 PM (7 days ago) Sep 9
to google-ap...@googlegroups.com
I'd recommend using the "gam devices" commands rather than the "game mobile" commands. The devices commands are newer and support company -owned as well as Win, Mac and Linux desktop devices.

Jay Lee

Reply all
Reply to author
Forward
0 new messages