I use rclone
with Ubuntu 12.04 to upload files from server to Google Drive. Everything works fine, but I can not figure out, with what command I can delete all files in directory. I have a remote called gdrive
.
I tried using empty path:
root@machine:~$ rclone purge gdrive:
2015/09/13 00:54:02 Attempt 1/3 failed with 1 errors and: Can't purge root directory
2015/09/13 00:54:02 Attempt 2/3 failed with 1 errors and: Can't purge root directory
2015/09/13 00:54:02 Attempt 3/3 failed with 1 errors and: Can't purge root directory
2015/09/13 00:54:02 Failed to purge: Can't purge root directory
I tried using *
:
root@machine:~$ rclone purge gdrive:*
2015/09/13 00:56:49 Attempt 1/3 failed with 1 errors and: Couldn't find directory: "*"
2015/09/13 00:56:49 Attempt 2/3 failed with 1 errors and: Couldn't find directory: "*"
2015/09/13 00:56:49 Attempt 3/3 failed with 1 errors and: Couldn't find directory: "*"
2015/09/13 00:56:49 Failed to purge: Couldn't find directory: "*"
Using purge to delete directories and files I know the name of works fine, but I can not guess how to delete all files in the root directory at once and the documentation on rclone's commands is poor.