--- rclone will only purge a file in the vfs file cache after --vfs-cache-max-age expires.
--- if the total size of all files in the vfs fie cache exceeds --vfs-cache-max-size, then rclone will purge files.
to quote ncw,
"When the cache fills up rclone make a list of all the files, sorts them by last accessed then deletes the least recently used until there is enough storage space."
note: rclone will never purge an in-use file from the vfs file cache
Deleting large directories is not fast, and if i want to do with rclone still running, it's likely i would delete files that are in use.
I'm trying to have no downtime for this, as even restarting rclone with a big cache is costly (sometimes 5min+). I have systemd set to reboot if rclone crashes so this would also trigger a reboot... this could be disabled of course but idk if just systemctl daemon-reload is enough for that
Rclone should have a way to purge folders from the cache, and use async delete using full path to each file/folder to do it quickly. I searched for a rclone rc command for this but seems there is none
@ncw what is really the recommended way to delete a very large folder from cache quickly with rclone running, with minimal chances to cause rclone?