-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement cleanup for other remotes #575
Comments
Trying v1.34 of rclone, I can't seem to get Strangely, the hidden files do not show up when running |
@cederberg |
Hmm. Tried to reproduce, but now it works. Weird. The B2 web UI is sometimes slow, but shouldn't take several minutes to update... Hmm... Ignore this for now. I'll file a proper bug if I see this again (and can repro the issue). Thanks for the quick support! |
@cederberg might be caching I suppose... File a bug if you can reproduce it! Thanks, Nick |
I haven't had a chance to dig into the code yet, but I'm wondering if cleanup is smart enough to only "cleanup" the files that rclone deleted, or if it does a whole-storage empty/purge? If the latter, I'm not sure I'd be comfortable with that without a pretty clear confirmation or |
@eharris cleanup will do its stuff on all files, regardless of whether rclone deleted them. It should only remove already deleted files.
Lots of rclone commands can cause data loss if used incorrectly. The |
Moving comments from #1489 to here: |
Any ETA on google drive ? |
@ncw I've been looking into cleanup for amazonclouddrive, box, dropbox and onedrive. amazonclouddrive: There doesn't seem to be any documentation on permanently deleting trashed items with the Amazon Cloud Drive API. Docs box: The Box API provides an endpoint for listing trashed items and permanently deleting trashed items. However, there's no endpoint for permanently deleting trashed items and the Box API does not support batch API calls. Cleanup is not feasible since it involves listing all trashed items and making a delete request for each item. Docs dropbox: There doesn't seem to be any documentation on permanently deleting trashed items with the Dropbox API. From my understanding, it is not yet supported. Docs onedrive: Same as dropbox and amazonclouddrive, the OneDrive API does not expose a way to permanently delete trashed items. Docs |
@ishuah - thanks for working on this ticket and the informative info above. I make this ticket all done now - do you agree? |
@ncw I agree, this ticket is done. |
Excellent - thank you very much @ishuah |
I'm getting this error with google drive:
Command taken from: https://rclone.org/drive/#emptying-trash Any ideas ? |
Ooops sorry, system where I was testing had an old release, everything is ok with latest release. |
rclone cleanup remote:path not working for a google drive remote. Command returns without errors, but running rclone about remote: still shows terabytes in the trash. Any thoughts? |
I think it can take some time for the cleanup to take effect. |
Well, you may be right. It's gone down about 50GB in the past 6 hours. Maybe it'll just take a while to empty. Thanks! |
Implement cleanup for remotes
The text was updated successfully, but these errors were encountered: