I'm trying to delete files from VFS cache.
Can someone explain me how does the rclone rc vfs/refresh and rclone rc vfs/forget work?
Either the refresh or forget does work or am I misunderstanding something?
Currenty I'm deleting the files manually in the VFS cache directory.
What is your rclone version (output from rclone version)
rclone v1.54.0
os/arch: linux/amd64
go version: go1.15.7
Which OS you are using and how many bits (eg Windows 7, 64 bit)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The rclone config contents with secrets removed.
rclone rc vfs/refresh recursive=true _async=true
rclone rc vfs/forget dir="A_SERIES_DIRECTORY"
The rclone config contents with secrets removed.
[gdrive_1]
type = drive
scope = drive
root_folder_id = .....
service_account_file = .....
team_drive = .....
# google drives remotes as union
[gdrive_union]
type = union
remotes = gdrive_1: gdrive_2: gdrive_3: ....
# remote for mount
[gdrive_alias]
type = alias
remote = gdrive_union:/
I know, but how do I get rid off those files from the cache, when they are removed over the Google Drive WebGui?
I have removed some files over the Google Drive WebGui, but they were still availabe in the cache.
I thought the GoogleDrive is a polling drive and would remove those files automatically?
I have also tried the forget and refresh comans of remote control, but havenāt worked also.
Ok, the file does not exist in the remote after the deletion, but still exist in the cache dir.
I think, I was expecting that the file is also removed in the cache directory and at the moment I saw that a file still exists in the cache, I haven't controlled the remote itself.
I think its working
Question: But why is the file in cache not removed?