Delete files on GoogleDrive

Hello,

How can i delete files on Google Drive by rclone command?

Thank you.

rclone delete

You may also want to be aware of rclone purge if you need to delete a large folder (not individual files).
Delete will iterate through the files which can be slow if there are many files. purge will trash the entire folder (asyncronusly). Use whichever is appropriate for the job.

Are you sure it's possible to delete files from GoogleDrive by rclone command, because i try i get error authorizations. I don't have my script here but the GoogleDrive key have all permissions?

It would your permissions and nothing to do with rclone itself.

[felix@gemini ~]$
[felix@gemini ~]$ rclone copy /etc/hosts GD:
[felix@gemini ~]$ rclone ls GD:hosts
      243 hosts
[felix@gemini ~]$ rclone delete GD:hosts
[felix@gemini ~]$ rclone ls GD:hosts
2019/08/05 15:08:16 Failed to ls: directory not found

As an example.

Can you share more details on what the error is and how you are setup and we can happily help!

as soon as I come back from vacation, I'll tell you more about this error