Delete files on GoogleDrive with rclone command2

Dear,

I reopen this topic: Delete files on GoogleDrive with rclone command

I try with rclone_v1.54_x64 run on Ubuntu, i cannot delete files on GoogleDrive (upload/download works fine).

I use this command:

rclone -v delete GD:myfolder/BatteryStatus_DEV_motion_car_polo_1.json

It''s normal google drive.

i get theses messages:

2021/03/10 21:18:20 ERROR : BatteryStatus_DEV_motion_car_polo_1.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/03/10 21:18:20 ERROR : Attempt 1/3 failed with 2 errors and: failed to delete 1 files
2021/03/10 21:18:21 ERROR : BatteryStatus_DEV_motion_car_polo_1.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/03/10 21:18:21 ERROR : Attempt 2/3 failed with 2 errors and: failed to delete 1 files
2021/03/10 21:18:22 ERROR : BatteryStatus_DEV_motion_car_polo_1.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/03/10 21:18:22 ERROR : Attempt 3/3 failed with 2 errors and: failed to delete 1 files
2021/03/10 21:18:22 Failed to delete with 2 errors: last error was: failed to delete 1 files

Thank you.

can you post the debug log, using -vv, not -v and the config file, redact secrets.

Tools/rclone_v1.54.0_linux_x64/rclone --config="/home/james/Desktop/LookJames/DEV/v1.00/Tools/rclone/rclone_DEV_motion_car_polo_1.conf" delete SyncFilesRaspRemoteDrive:RaspHostFiles/DEV/motion_car_polo_1/exchange/BatteryStatus_DEV_motion_car_polo_1.json -vv
2021/03/11 18:28:45 DEBUG : rclone: Version "v1.54.0" starting with parameters ["Tools/rclone_v1.54.0_linux_x64/rclone" "--config=/home/james/Desktop/LookJames/DEV/v1.00/Tools/rclone/rclone_DEV_motion_car_polo_1.conf" "delete" "SyncFilesRaspRemoteDrive:RaspHostFiles/DEV/motion_car_polo_1/exchange/BatteryStatus_DEV_motion_car_polo_1.json" "-vv"]
2021/03/11 18:28:45 DEBUG : Using config file from "/home/james/Desktop/LookJames/DEV/v1.00/Tools/rclone/rclone_DEV_motion_car_polo_1.conf"
2021/03/11 18:28:45 DEBUG : Creating backend with remote "SyncFilesRaspRemoteDrive:RaspHostFiles/DEV/motion_car_polo_1/exchange/BatteryStatus_DEV_motion_car_polo_1.json"
2021/03/11 18:28:49 DEBUG : fs cache: adding new entry for parent of "SyncFilesRaspRemoteDrive:RaspHostFiles/DEV/motion_car_polo_1/exchange/BatteryStatus_DEV_motion_car_polo_1.json", "SyncFilesRaspRemoteDrive:RaspHostFiles/DEV/motion_car_polo_1/exchange"
2021/03/11 18:28:49 DEBUG : Waiting for deletions to finish
2021/03/11 18:28:49 DEBUG : ShieldStatus_DEV_motion_car_polo_1.json: Excluded
2021/03/11 18:28:49 DEBUG : ICON_masque.png: Excluded
2021/03/11 18:28:50 ERROR : BatteryStatus_DEV_motion_car_polo_1.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/03/11 18:28:50 ERROR : Attempt 1/3 failed with 2 errors and: failed to delete 1 files
2021/03/11 18:28:50 DEBUG : Waiting for deletions to finish
2021/03/11 18:28:50 DEBUG : ShieldStatus_DEV_motion_car_polo_1.json: Excluded
2021/03/11 18:28:50 DEBUG : ICON_masque.png: Excluded
2021/03/11 18:28:51 ERROR : BatteryStatus_DEV_motion_car_polo_1.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/03/11 18:28:51 ERROR : Attempt 2/3 failed with 2 errors and: failed to delete 1 files
2021/03/11 18:28:51 DEBUG : Waiting for deletions to finish
2021/03/11 18:28:51 DEBUG : ShieldStatus_DEV_motion_car_polo_1.json: Excluded
2021/03/11 18:28:51 DEBUG : ICON_masque.png: Excluded
2021/03/11 18:28:52 ERROR : BatteryStatus_DEV_motion_car_polo_1.json: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/03/11 18:28:52 ERROR : Attempt 3/3 failed with 2 errors and: failed to delete 1 files
2021/03/11 18:28:52 DEBUG : 6 go routines active
2021/03/11 18:28:52 Failed to delete with 2 errors: last error was: failed to delete 1 files

Config file:

[SyncFilesRaspRemoteDrive]
type = drive
scope = drive
service_account_file = /home/james/Documents/AUTH/RaspDEV.json
root_folder_id = XXXXXX

looks like a permissions issue, no permission to delete the object.

The file is created by the same user.

perhaps that user does not have permission to delete.
you created a service file, check the user permissions.

for example, when i setup a user with wasabi, a s3 clone,
i create a user that can only upload, not download, not delete.

Where can i check user permissions?

the same place where you created the service account file.

You can check permission (language is french)

No idea about my problem?