Re: [GAM] Delete a drive file

1,667 views
Skip to first unread message
Message has been deleted

Ross Scroggs

unread,
Mar 9, 2016, 9:50:35 AM3/9/16
to google-ap...@googlegroups.com
Christopher,

it should be: gam user <user> delete drivefile query "name = 'file.txt'"

Ross

On Mar 9, 2016, at 6:41 AM, Christopher Slobodian <cslob...@icsd.k12.ny.us> wrote:

I am trying to delete a file using the syntax:

gam user <user> delete drivefile "query name = 'file.txt'" and I get trashing query name = 'file.txt' for <user> (1 of 1) Error: 404: File not found: query name = 'file.txt' - notFound

I am sure this is something really simple I am missing...

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f199c00c-560b-4850-a954-2075c4767d40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christopher Slobodian

unread,
Mar 9, 2016, 9:52:25 AM3/9/16
to Google Apps Manager
I did notice I am missing a colon gam user <user> delete drivefile "query:name = 'file.txt'" but still not working.

Christopher Slobodian

unread,
Mar 9, 2016, 9:54:54 AM3/9/16
to Google Apps Manager
Thanks for the reply, I tried that and got:

ERROR: name = 'file.txt' is not a valid argument for "gam <users> delete drivefile"

Ross Scroggs

unread,
Mar 9, 2016, 10:03:06 AM3/9/16
to google-ap...@googlegroups.com
Christopher,

Sorry, my version of GAM allow that, you need the colon style as you noticed: gam user <user> delete drivefile "query:name = 'file.txt'" 
Substitute title for name: gam user <user> delete drivefile "query:title = 'file.txt'" 


On Mar 9, 2016, at 6:54 AM, Christopher Slobodian <cslob...@icsd.k12.ny.us> wrote:

Thanks for the reply, I tried that and got:

ERROR: name = 'file.txt' is not a valid argument for "gam <users> delete drivefile"

On Wednesday, March 9, 2016 at 9:50:35 AM UTC-5, Ross Scroggs wrote:

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Christopher Slobodian

unread,
Mar 9, 2016, 10:23:14 AM3/9/16
to Google Apps Manager
Thanks. That did it!


On Wednesday, March 9, 2016 at 10:03:06 AM UTC-5, Ross Scroggs wrote:
Christopher,

Sorry, my version of GAM allow that, you need the colon style as you noticed: gam user <user> delete drivefile "query:name = 'file.txt'" 
Substitute title for name: gam user <user> delete drivefile "query:title = 'file.txt'" 


On Mar 9, 2016, at 6:54 AM, Christopher Slobodian <cslob...@icsd.k12.ny.us> wrote:

Thanks for the reply, I tried that and got:

ERROR: name = 'file.txt' is not a valid argument for "gam <users> delete drivefile"

On Wednesday, March 9, 2016 at 9:50:35 AM UTC-5, Ross Scroggs wrote:

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
Reply all
Reply to author
Forward
0 new messages