Delete old files remotely

I created a backup script like this:

rclone sync drivex:/src/ drivey:/dst/ --backup-dir drivey:/bkp/

My question is if you would like to delete older files directly on drivey:/bkp/


You can use rclone delete with the --min-age 7d flag to delete anything older than 7 days - is that what you want? Try first with --dry-run to make sure it is doing the right thing.

1 Like

Very Tnks!!!

rclone delete will work but if you are still facing problem deleting older files, I suggest you to try LongPathTool!
It worked for me,