The Oauth used here worked when I tried to delete something that was in a Team Drive of mine. But not when working with this encrypted one, with its base in the personal drives.
What is your rclone version (output from rclone version)
1.56.0
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone -vv delete drive:Files/abandon2
2021/09/16 17:32:23 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "-vv" "delete" "drive:Files/abandon2"]
2021/09/16 17:32:23 DEBUG : Creating backend with remote "drive:Files/abandon2"
2021/09/16 17:32:23 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/09/16 17:32:23 DEBUG : Creating backend with remote "crypt1:1/ant0d3l284r5o9a0rop7d9rgmc/85fe927eu3sheod8nu0eolknn8"
2021/09/16 17:32:25 DEBUG : Waiting for deletions to finish
2021/09/16 17:32:25 DEBUG : 4 go routines active
But the folder is still there.
I added the access token with the google page full write read delete files access.
This might have something to do with my drive set up since it is inside my drive.
based on the docs, and some quick testing rclone delete will not delete that root folder.
"rclone delete only deletes files but leaves the directory structure alone. If you want to delete a directory and all of its contents use the purge command."
$ rclone -vv purge drive:Filestesting1
2021/09/16 17:47:10 DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "-vv" "purge" "drive:Files/testing1"]
2021/09/16 17:47:10 DEBUG : Creating backend with remote "drive:Files/testing1"
2021/09/16 17:47:10 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/09/16 17:47:10 DEBUG : Creating backend with remote "crypt1:1/ant0d3l284r5o9a0rop7d9rgmc/j8dgfolrtklu4fi22uogt4qdeo"
2021/09/16 17:47:13 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/09/16 17:47:13 ERROR : Attempt 2/3 failed with 1 errors and: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/09/16 17:47:13 ERROR : Attempt 3/3 failed with 1 errors and: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2021/09/16 17:47:13 DEBUG : 4 go routines active
2021/09/16 17:47:13 Failed to purge: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions