Show and Delete empty Drive folders

586 views
Skip to first unread message

Colin Dinshaw

unread,
Apr 29, 2024, 9:43:19 AM4/29/24
to GAM for Google Workspace
Hi, I want to delete all the empty folders in a users My Drive. I found two commands but they keep failing with error "The filename, directory name, or volume label syntax is incorrect."

Can someone give me an example of what to enter for each command please

Print a list of empty files in my Drve:

gam <UserTypeEntity> print emptydrivefolders [todrive <ToDriveAttribute>*]

Delate:

gam <UserTypeEntity> delete emptydrivefolders



Ross Scroggs

unread,
Apr 29, 2024, 10:20:30 AM4/29/24
to google-ap...@googlegroups.com
Colin,

Show the two commands you are trying; substitute us...@domain.com for the actual address.

Ross
----
Ross Scroggs



On Apr 29, 2024, at 6:43 AM, 'Colin Dinshaw' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Colin Dinshaw
IT Support Service Manager

Working days: Monday, Tuesday, Thursday and Friday


Tel: 0115 896 8835 Mobile: 07594 090253
Email: 
colin....@paddleuk.org.uk
<RSImage-28592.gif>
<RSImage-28490.png>
<RSImage-28572.jpeg>
National Water Sports Centre, Adbolton Lane, Holme Pierrepont, Nottingham, NG12 2LU    
www.paddleuk.org.uk   Membership - join us online
<RSImage-28573.jpeg>

 
Paddle UK is a trading name of British Canoeing which is a company registered in England & Wales with the registered number 01525484. British Canoeing is a company limited by guarantee without a share capital with the registered office National Water Sports Centre, Adbolton Lane, Holme Pierrepont, Nottingham, NG12 2LU and the VAT number 347364441. This email and its attachments may be confidential and are intended solely for the use of the individual or individuals to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Paddle UK, British Canoeing or its subsidiaries. If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Please contact the sender if you believe that you have received this email in error.

-- 
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/6d04ffbf-ced8-4344-8a06-7ccd4a53b74an%40googlegroups.com.

Colin Dinshaw

unread,
Apr 29, 2024, 11:32:00 AM4/29/24
to google-ap...@googlegroups.com
Hi Ross

So they will be:

gam us...@domain.com print emptydrivefolders todrive us...@domain.com


You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/3DiC6TJbWs0/unsubscribe.
To unsubscribe from this group and all its topics, 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/A4BB6EA2-D099-4F0D-B379-B665ACA4DB30%40gmail.com.

Ross Scroggs

unread,
Apr 29, 2024, 11:41:01 AM4/29/24
to google-ap...@googlegroups.com
Colin,

Send me a Meet/Zoom invitation and I'll help.

Ross
----
Ross Scroggs


Colin Dinshaw

unread,
Apr 29, 2024, 11:52:35 AM4/29/24
to google-ap...@googlegroups.com

Colin Dinshaw

unread,
Apr 30, 2024, 5:09:26 AM4/30/24
to GAM for Google Workspace
Hi Ross, thanks for setting up advanced GAM, it is a great tool!!

If I want to set it up on another users computer can I just copy the environmental variables and the GAM folders in the C Drive across to the new users computer?

Ross Scroggs

unread,
Apr 30, 2024, 10:35:40 AM4/30/24
to google-ap...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages