dogbutcat / gclone

fork from https://github.com/donwa/gclone
166 stars 28 forks source link

Deleting files #29

Open ino6962 opened 2 months ago

ino6962 commented 2 months ago

How would deleting files created by a service account work? while trying to delete a file from google drive directly on a Non-SA account folder (SA has Editor Access) with a SA owned file, it shows 'file1’ will be removed from view. Collaborators will still have access.

On the other hand, In some cases trying to Delete files from gclone frequently gets the error IO error: 2 errors: sa_drive: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions; while trying to delete files.

my config

type = drive
scope = drive
service_account_file = C:\Users\user\AppData\Roaming\rclone\accounts\0.json
service_account_file_path = C:\Users\user\AppData\Roaming\rclone\accounts\
root_folder_id = xxxxxxxxxxxxxxxxxxxxxxxx
rolling_sa = true
rolling_count = 1
random_pick_sa = true