User has over a million files with a certain text in the filename "sample".
What's the most efficient way to get a text file list of all these files and then to delete them after review?
I found some commands on the cheatsheet but they are both taking an exceptionally longtime to generate. 30+ minutes.
My first try is this:
gam user myu...@mydomain.tld print filelist query "title contains 'sample'" > filelist.txt
My second try is this:
gam user myu...@mydomain.tld show fileinfo root id title
Drive Folder: My Drive (XXXXX)
id: YYYYYYYYYYY
gam user myu...@mydomain.tld print filelist query "'YYYYYYYYY' in parents and title contains 'sample'" id name > filelistwithparentid.txt