delete ALL g-drive files of the specific user

110 views
Skip to first unread message

Дмитро Фролов

unread,
Dec 5, 2023, 7:59:26 AM12/5/23
to GAM for Google Workspace
help pliz with script
to delete ALL g-drive files of the specific user

Maj Marshall Giguere

unread,
Dec 5, 2023, 9:38:28 AM12/5/23
to google-ap...@googlegroups.com

On Tue, Dec 5, 2023 at 5:59 AM Дмитро Фролов <dmytro...@nure.ua> wrote:
help pliz with script
to delete ALL g-drive files of the specific user

--
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/dcc5759a-af1b-443a-bfc2-67e71ab8c8cdn%40googlegroups.com.

Дмитро Фролов

unread,
Dec 5, 2023, 9:41:52 AM12/5/23
to GAM for Google Workspace
is it possible delete ALL files and folders without Generate a list ? something like 
gam user te...@domain.com delete drivefile all_items ?

вторник, 5 декабря 2023 г. в 16:38:28 UTC+2, Maj Marshall Giguere:

Ross Scroggs

unread,
Dec 5, 2023, 10:59:20 AM12/5/23
to google-ap...@googlegroups.com
See: https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Drive-Cleanup#delete-contents-of-my-drive  Method 3

At its simplest, you can execute this command as documented
gam redirect stdout ./PurgeTopLevelFilesFolders.txt redirect stderr stdout user us...@domain.com purge drivefile my_top_items
Ross
----
Ross Scroggs



Doc Cheramie

unread,
May 28, 2024, 3:06:51 PM5/28/24
to GAM for Google Workspace
Hi,

When I try to use these commands in PowerShell or CMDLine, GAM does not recognize "redirect" or "stdout".  What would be the equivalent, please, in PowerShell?

Ross Scroggs

unread,
May 28, 2024, 3:09:36 PM5/28/24
to google-ap...@googlegroups.com
What is: gam version

Ross



--

Doc Cheramie

unread,
May 28, 2024, 3:14:05 PM5/28/24
to GAM for Google Workspace

GAMADV-XTD3 6.76.06

 

GAM 6.58

Ross Scroggs

unread,
May 28, 2024, 3:21:17 PM5/28/24
to google-ap...@googlegroups.com
You need to be running 6.76.06.


Scroll down to Set system path and GAM configuration directory.

Send me a Meet/Zoom invitation if you need help..

Ross



--

Doc Cheramie

unread,
May 28, 2024, 3:35:41 PM5/28/24
to GAM for Google Workspace
Thanks!

That works

Reply all
Reply to author
Forward
0 new messages