Delete the quota-affecting files in Google Drive while leaving the Google Docs files
Hi. I'm beginning the process of moving old content from Google Drive to an external drive (that I mirror to another external drive). Here are my planned steps:
Sync the folder to my local hard drive using Google Drive for desktop.
Copy the whole folder to my primary external drive.
Sync to my backup external drive (I'm using Free File Sync).
Delete the folder from Google Drive.
The issue I just realized is the Google Drive folders have Google Docs files within them, and not in a single place. This prevents me from deleting the whole folder in Google Drive without losing those files. Is there any method to delete the quota-affecting files within a subfolder in Google Drive while leaving the Google Docs files in place?
I'm using Windows but also have a Mac available, in case that helps with step 4.
2 years ago I managed to do step 1, then I did step 2 using a custom python script to skip the specific google docs file extensions, them I proceeded to step 4.
You may use shutil (library) to copy and delete (or cut) the files that are not from google docs, then delete the directory if it is now empty. That should leave only the directories with the google docs files
As usual the answer is of course rclone. It even has --drive-skip-gdocs switch. Just rclone move --drive-skip-gdocs gdrive_remote:whatever_directory_if_any_at_all some_local_place
Thanks. rclone never ceases to amaze. I searched quite a bit before posting, but nothing about rclone having this functionality came up. Much appreciated.