I try with rclone_v1.61.1 , i cannot delete files on GoogleDrive (upload/download works fine).
I get theses traces:
rclone -v delete HomeRaspHostFiles:/UsersWantOvpn.txt
2023/01/28 14:24:13 ERROR : UsersWantOvpn.txt: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2023/01/28 14:24:13 ERROR : Attempt 1/3 failed with 2 errors and: failed to delete 1 files
2023/01/28 14:24:14 ERROR : UsersWantOvpn.txt: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2023/01/28 14:24:14 ERROR : Attempt 2/3 failed with 2 errors and: failed to delete 1 files
2023/01/28 14:24:15 ERROR : UsersWantOvpn.txt: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2023/01/28 14:24:15 ERROR : Attempt 3/3 failed with 2 errors and: failed to delete 1 files
2023/01/28 14:24:15 Failed to delete with 2 errors: last error was: failed to delete 1 files
I don't find what is the problem, i use a service account.
Give the service account user the correct permissions is the solution.
I'm not sure on the mechanics of this, I know people often share directories with the service account user and then use --drive-shared-with-me to access them with the service account. There may be better solutions though.
Service accounts don't work particularly well with normal google drive accounts - they work best with an enterprise account where you can delegate permissions to them.