Hi guys.
How can I delete a specific file on multiple folders on my gdrive?
Is that possible?
Thanks
Hi guys.
How can I delete a specific file on multiple folders on my gdrive?
Is that possible?
Thanks
Yes, it's a filter with the file name using an include:
[felix@gemini test]$ rclone delete --include hosts /home/felix/test --dry-run
2019/07/12 08:58:12 NOTICE: 3/hosts: Not deleting as --dry-run
2019/07/12 08:58:12 NOTICE: 2/hosts: Not deleting as --dry-run
[felix@gemini test]$ rclone delete --include hosts /home/felix/test --dry-run -vv
2019/07/12 08:58:15 DEBUG : rclone: Version "v1.48.0" starting with parameters ["rclone" "delete" "--include" "hosts" "/home/felix/test" "--dry-run" "-vv"]
2019/07/12 08:58:15 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2019/07/12 08:58:15 INFO : Waiting for deletions to finish
2019/07/12 08:58:15 NOTICE: 2/hosts: Not deleting as --dry-run
2019/07/12 08:58:15 NOTICE: 3/hosts: Not deleting as --dry-run
2019/07/12 08:58:15 DEBUG : 3 go routines active
2019/07/12 08:58:15 DEBUG : rclone: Version "v1.48.0" finishing with parameters ["rclone" "delete" "--include" "hosts" "/home/felix/test" "--dry-run" "-vv"]
I used the filename hosts as an example. It'll match specifically a file called hosts in any directory.
Cool thanks Ani
Gonna test right away .
Have a great weekend
Morph
Just tried it @Animosity022 seems to be a very.... very very slow process?
Just tried to add my backup drive and run
rclone delete --include sample.mkv /home/plex/cleanup --dry-run -P
2 mins so far and nothing happends?
You are Google Drive? You may want to use --fast-list depending on how many files you have, it could take some time.
Yes
Ok gonna try add that one as well
Cheers
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.