Meet recording deletion from end user's drive

330 views
Skip to first unread message

Amit Mishra

unread,
Feb 7, 2024, 9:31:48 PM2/7/24
to GAM for Google Workspace
Hi Team,

Is it possible for an admin to pull records of meet recordings and delete from end user's drive via GAM? I need to do it every month.

Any guide would be highly appreciated. TIA

Regards,
Amit Mishra



Risk Warning: Spread bets, CFDs & leveraged FX are complex instruments and come with a high risk of losing money rapidly due to leverage. Trading isn’t suitable for everyone and you should consider whether you understand how these products work and whether you can afford to take the high risk of losing your money. This email contains general information which doesn't take into account your or your clients' personal objectives, financial situation or needs. Please read the relevant legal documents and seek independent advice if necessary.

 

If you're not the intended recipient please let the sender know immediately and delete this email from your system. Pepperstone is licensed and regulated in multiple jurisdictions. Please refer to www.pepperstonegroup.com for more information about our companies.

Ross Scroggs

unread,
Feb 7, 2024, 9:49:53 PM2/7/24
to google-ap...@googlegroups.com
Amit,

Do the recordings have a unique naming structure or MIME type that could be used to select them?

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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/0c0a22fc-32a9-4cde-963d-2f9c3bc72e03n%40googlegroups.com.

Ian Crew

unread,
Feb 7, 2024, 10:20:48 PM2/7/24
to GAM for G Suite
I just did a little looking into this by making a Meet recording of myself.

It seems that by default, they’re stored in a “Meet Recordings” folder at the root level of the organizer’s MyDrive, and the name format is of the form:

MEETINGID (2024-02-07 19:04 GMT-8)

For example: 
xxx-yyyy-zzz (2024-02-07 19:04 GMT-8)

But doing a gam show fileinfo on the file shows that it’s just a standard MP4 file (mime type video/mp4), with no metadata indicating that it was created as a Meet recording.

So for me, I guess the question is how thorough Amit wants to be? It would be possible to delete all of the files older than a month in the “Meet Recordings” folder, or go looking for MP4 files that match the naming convention anywhere in a user’s MyDrive, but if the user moves the recording out of “Meet Recordings” and/or changes its name, the deletion would miss that recording. 

So, Amit, what do you think?

Cheers,

Ian

Brian Kim

unread,
Feb 7, 2024, 11:27:17 PM2/7/24
to GAM for Google Workspace
Ross actually has an example of creating a list of files in Meet Recordings folder.

# List all Meet recordings older than 30 days.
gam user testuser print filelist select drivefilename "Meet Recordings" querytime30d -30d selectsubquery "modifiedTime<'#querytime30d#'"

# List all users' Meet Recordings
gam config auto_batch_min 1  redirect csv ./meet_recordings.csv multiprocess all users print filelist select drivefilename "Meet Recordings" querytime30d -30d selectsubquery "modifiedTime<'#querytime30d#'"

You can adjust your query and include mimetype as well if you don't want to delete transcripts, etc. that might be in the folder. This also assumes that the user did not create another folder named "Meet Recordings".

Amit Mishra

unread,
Feb 12, 2024, 1:14:13 AM2/12/24
to GAM for Google Workspace
Thanks for the response Ian, it is bit tricky as the file naming convention is not consistent, sometimes the file name is subject of meeting and sometime as meeting code. Don't want to delete someone's non meet recording files. 
This is something I need to do every month so wondering if we automate is somehow. I was looking into the vault retention policy and there is one for Google meet but currently it is inheriting G-drive policy. Tried creating a meet file retention policy but looks like it is going to purge all data. 

As an admin, can I delete data from user's drive via GAM.

Regards,
Amit Mishra

Amit Mishra

unread,
Feb 12, 2024, 1:16:29 AM2/12/24
to GAM for Google Workspace
Thank you Brian,

I must confess, I am new in GAM world, I can test script in one of the test account and come back to you. 

Regards,
Amit Mishra

Amit Mishra

unread,
Feb 12, 2024, 1:17:50 AM2/12/24
to GAM for Google Workspace
Hi Ross, 

Thanks for the response, as mentioned by Ian, yes it is MP4 files.

Regards,
Amit Mishra

Reply all
Reply to author
Forward
0 new messages