Does rclone purge command removes subdirectory and the contents of those subdirectories recursively?

What is the problem you are having with rclone?

I want to delete a directory with all its contents, subdirectories and contents of subdirectories recursively. I used purge command, and I made Bin empty, but when I search for some folders that existed in the deleted folder, I can find them. and seems they are not deleted and it seems they are orphaned folder now. why is that?

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

rclone v1.64.0

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

I am on version 1.64.0 which is the latest version at the moment

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

Google Drive

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

rclone purge remote:/path/to/folder

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

[naim]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

A log from the command that you were trying to run with the -vv flag

I do not have the log for that


rclone purge is the right way to delete directory and its subdirectories including all content.

Please provide some example to show the problem. How do you search them?

Is it possible that your search include thrash? If you want to remove all threshed content you can run rclone cleanup

I search in google drive search bar, maybe I should give it some time for Google Drive to fully synchronize and update its index. can it be the case? because the size of Folder I deleted was about 90 Gigabyte but the google drive used storage bar in left sidebar does reflect the changes.

It makes sense. Google drive is real slow in purging content from thrash. It is rather related to number of files then their size. Some people report that it can take more than 24h for content to be purged. If your work requires more robust performance you can try Google Cloud Storage. It is more expensive but you get what you pay for.

1 Like

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