Struggling to remove cache

What is the problem you are having with rclone?

Probably training. I'm trying to mount Jottacloud to a drive letter in Windows. Copying files seems fine but it complains about every file, suggesting I use writes cache. If I do this, the cache folder in localappdata just keeps on stealing drive space and never clears.

Run the command 'rclone version' and share the full output of the command.

rclone v1.62.2

  • os/version: Microsoft Windows Server 2022 Datacenter 21H2 (64 bit)
  • os/kernel: 10.0.20348.1787 Build 20348.1787.1787 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads

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


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

rclone.exe mount Jottacloud: J: --vfs-cache-mode writes

The rclone config contents with secrets removed.

type = jottacloud
configVersion = 1
client_id = jottacli
client_secret = 
tokenURL =
token = {"access_token":" (redacated)
device = 
mountpoint = 

From my understanding if I don't use any cache whatsoever, copying files seems to work fine, but I get : WriteFileHandle: Truncate: Can't change size without --vfs-cache-mode >= writes after every file copy. I'm also led to believe that it doesn't really do error handling very well. So I guess I need to use --vfs-cache-mode >= writes. If I do use this, every file I copy to the rclone mount drive, stays in the localappdata folder on Windows and never gets removed. Naturally this is eating up drive space and I can only appear to delete this folder manually (after confirming that the files have uploaded).

I then tried appending --vfs-cache-max-size 1 which does seem to work and achieves what I'm after, however if I copy a folder over with say multiple directories, the directories, although empty still remain. So not ideal either.

I can't find an awful lot about what I'm trying to achieve, and I'm very new to this. Any useful advice would be appreciated, thanks in advance! :slight_smile:

And why it is the problem? What about you let cache do its job?

Thanks for your prompt reply :slight_smile: ...because I'm guessing it will eventually just rack up a lot of empty directories? Okay it's not a problem, but not very elegant and just a bit messy :slight_smile:

It's documented here:

With no changes, it'll remove items not in use in an hour by default.

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