How to make Rclone delete cache automatically when process complete?

Hi all,

What is the problem you are having with rclone?

I'm wonder how to make rclone delete cahced files after process complete like RaiDrive Software. For example if i download test 10GB file as a test using Internet Download Manager and select save folder my CloudStorage then Rclone will keep the 10GB cached files in my LocalDrive, But on RaiDrive if Download completed then the cached Files on my local drive will automaticly deleted.

What is your rclone version (output from rclone version )

rclone v1.53.1

  • os/arch: windows/amd64
  • go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10

Which cloud storage system are you using? (eg Google Drive)

Google Drive (Shared Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp )

rclone mount --vfs-cache-mode=full --cache-dir=E:/rcloneCache gdrive: f:

The rclone config contents with secrets removed.

type = drive
scope = drive
token = {"access_token":xxxxxx","token_type":"Bearer","refresh_token":"xxxxx","expiry":"xx"}
team_drive = 0AH3TFG93nCeLUk9PVA
root_folder_id =

Change the setting for:


as it defaults to 1 hour but not sure why you'd auto delete it as that is a bit counter intuitive to using cache-mode full in the first place.

Not work it still keeping the cache files in local drive, maybe i miss other settings?

You'd have to share the full command you are using as I can't see your screen :slight_smile:

Sorry because my noob questions, I'm a new and my English not well, please don't understand me wrong.

This is my screenshot:

On RaiDrive which i like in it the copy status not appeared until full file copied to google drive and cache deleted in local drive.

Here after full file copied to google drive, so the finished status appeared and cache deleted in local drive:

I have no idea what "RaiDrive" is.

If you want to post a debug log with the issue, that would be great. Add -vv and --log-file rclone.log and share that please.

You'd see the file get removed after the cache times out.

I still don't understand why you want the cache at all if you want to immediately get rid of it as the whole point of the cache is to keep things you need local. If you don't need it, just use rclone copy and copy directly to the remote and don't use the mount at all.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.