Google Drive – Removing Certain Files from Folder Based on Name

google-drive

I have about 600 photos in a shared Drive folder. However, my camera uploaded both the ".RW2" files and the ".JPG" files, so I have a double of each photo. I want to delete all of the .RW2 files in the folder, but can't seem to find a way to do it without removing each file individually. Is there some sort of automated process I can use to do so?

Best Answer

One could write a script for this, but with 600 files, it seems easier to use the interface:

  1. Search for .RW2 using the search bar on top of screen: enter image description here
  2. Scroll down in the list of search result so that it loads more... and more... and more...
  3. Press Ctrl-A or its Mac equivalent to select all these items.
  4. Click on the trash icon to move them to trash.

Step 2 can be slightly annoying with many files. Drive uses infinite-scroll layout instead of fixed-size pagination of Gmail. It also lacks Gmail's capability to select all search results, even those not shown on the page. But still, the process is manageable and takes less time than writing an Apps Script and then worrying about whether it deleted the right things.