Deleting files and dirs does not reflect in G-drive UI

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

I have deleted a number of files and directories using a multitude of commands like below but when i go to google drive via web browser i can see the files are gone but the storage usage is the same.
rclone delete --progress gdrive-crypt/path/to/dir
rclone rmdirs --progress gdrive-crypt/path/to/dir

The files do not seem to be deleted from google drive as my storage has not decreased despite deleting TBs of data even though this was done days ago and i can see the files are missing from G-drive mount and from the google drive UI when accessing via web browser.

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

tired first on rclone v1.59.1 and then updated to rclone v1.63.1 but still the same

rclone v1.63.1
- os/version: ubuntu 18.04 (64 bit)
- os/kernel: 4.15.0-213-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: none
rclone delete --progress gdrive-crypt/path/to/dir
rclone rmdirs --progress gdrive-crypt/path/to/dir

The rclone config contents with secrets removed.

type = crypt
remote = gdrive:crypt
password = XXXX
password2 = XXX

type = drive
client_id =
client_secret = GOCSPX-sdfsdfsdf
scope = drive
token = {"access_token":"blah","token_type":"Bearer","refresh_token":"blah","expiry":"2023-08-01T12:01:53.488849722Z"}
team_drive =

/usr/bin/rclone mount --config=/root/.config/rclone/rclone.conf --allow-other --cache-dir=/mnt/storage-drive/rclone-caches/rclone-pm-cache --no-modtime --drive-use-trash --use-json-log --log-file=/var/log/gdrive.log --cache-info-age=60m gdrive-crypt:stuff /mnt/stuff-gdrive

A log from the command with the -vv flag

Paste  log here

perhaps the files are in the trash?
rclone will send all files to the trash when deleting files

rclone about gdrive: -vv
rclone ls gdrive: --drive-trashed-only -vv

1 Like

Thank you thats seems to have done something as storage usage has just dropped by a 1TB.

I thought trash was automatic for some reason.

I will wait a couple of hours to see if the storage usage reflects the deletions.

if i remember correctly, based on forum posts, there can a delay when deleting a large amount of deleting files before that is reflected in the gui.

Yeah i noticed that also but i done at least 2TBs of deletions well over a week ago and it still was not reflected in the storage usage so thought it was something else that was going on.

you can always run command:

rclone cleanup gdrive:

to permanently delete all trashed files.

But still it can take many days before files are purged by Google. From my observation it is especially long when you delete many small files.

PS. I see you shared your client_id/secret.... Maybe not as critical as sharing token but better to invalidate them and create new ones to be on the safe side.

1 Like

Thanks all rclone cleanup gdrive: seems to have done the trick.

1 Like

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