I have a list of folder I'd like to delete. I have tried rclone purge --files-from=test.txtt
but failed. Can anyone help me on this issue? Thank you.
#!/bin/bash
input="/path/to/txt/file"
while IFS= read -r line
do
rclone purge "${line}"
done < "${input}"
assuming your file content format is:
remote:path
remote:path1
...
remote:pathN
If scripting is not your type of thing just create brute force script.
e.g. your file.txt is
remote:path
remote:path1
...
remote:pathN
use some text editor to change it to (replace beginning of every line with rclone purge
) :
rclone purge remote:path
rclone purge remote:path1
...
rclone purge remote:pathN
make it executable and run.
Job done
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.