How to purge cache?


#1

What is a commandline to purge the rclone cache completely?


#2

You can run it with --cache-db-purge which will purge the cache db and the chunks when it starts up.


#3

How do I purge without starting any mount? e.g. rclone purge cache:test will do? Will that not interfere in any of my future mounts?


#4

Do not do that! It will delete all the data under cache:test!

You don’t have to run a mount though you can run rclone --cache-db-purge lsd cache:test if you want…


#5

Wait, isn’t cache:test insignificant? I mean it doesn’t store my actual files.


#6

Assuming you have your config set up how I think. cache:test will point to remote:test. where remote is some cloud provider. If you purge cache:test then it will end up purging remote:test which I guess you don’t want to do!


#7

Omg, that’s crazy. You should put a RED bold warning letter on top of your cache page about this. I almost purge it thinking it won’t hurt my files coz I always mount --read-only anyway.


#8

agree :slight_smile: a warning would be great before someone runs rclone purge cache: instead of rclone --cache–db-purge :smiley: