Skip to content

Implement cleanup for other remotes #575

Closed

Description

@ncw

Implement cleanup for remotes

  • amazonclouddrive - not possible
  • b2 - done in b2: clean previous file versions #462
  • box - not possible easily (see below)
  • drive
  • dropbox - not possible
  • googlecloudstorage - not possible
  • hubic - not possible
  • local - not possible
  • onedrive - not possible
  • s3 - not possible
  • swift - not possible
  • yandex

Activity

  1. added this to the Soon milestone on Jul 9, 2016
  2. cederberg commented on Dec 2, 2016

    @cederberg
    Contributor

    Trying v1.34 of rclone, I can't seem to get rclone cleanup to work properly against B2. The files remain listed (hidden) in the Backblaze file browser tool (web site).

    Strangely, the hidden files do not show up when running rclone cleanup -v .... A guess might be that this is the root cause. Also tried with the --b2-versions flag, but to no avail.

  3. ncw commented on Dec 2, 2016

    @ncw
    MemberAuthor

    @cederberg rclone cleanup should work properly with b2 now. Can you open a new issue with a log file and some instructions on how to reproduce please? I thought this might be related to #604 but I fixed that apparently!

  4. cederberg commented on Dec 2, 2016

    @cederberg
    Contributor

    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!

  5. ncw commented on Dec 2, 2016

    @ncw
    MemberAuthor

    @cederberg might be caching I suppose... File a bug if you can reproduce it! Thanks, Nick

  6. eharris commented on Dec 30, 2016

    @eharris
    Contributor

    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 --yes-really kind of option.

  7. ncw commented on Dec 31, 2016

    @ncw
    MemberAuthor

    @eharris cleanup will do its stuff on all files, regardless of whether rclone deleted them. It should only remove already deleted files.

    If the latter, I'm not sure I'd be comfortable with that without a pretty clear confirmation or --yes-really kind of option.

    Lots of rclone commands can cause data loss if used incorrectly. The --dry-run option is for those cases!

  8. timwhite commented on Jun 18, 2017

    @timwhite

    Moving comments from #1489 to here:
    It would be great to support Google Drive "Cleanup", or at least the ability to empty the Trash. Both V2 and V3 of the API support it https://developers.google.com/drive/v3/reference/files/emptyTrash

  9. juanluisbaptiste commented on Jul 25, 2017

    @juanluisbaptiste

    Any ETA on google drive ?

  10. 2 remaining items

  11. ishuah commented on Sep 17, 2017

    @ishuah
    Collaborator

    @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

  12. modified the milestones: Soon, v1.38 on Sep 17, 2017
  13. ncw commented on Sep 17, 2017

    @ncw
    MemberAuthor

    @ishuah - thanks for working on this ticket and the informative info above.

    I make this ticket all done now - do you agree?

  14. ishuah commented on Sep 17, 2017

    @ishuah
    Collaborator

    @ncw I agree, this ticket is done.

  15. ncw commented on Sep 25, 2017

    @ncw
    MemberAuthor

    Excellent - thank you very much @ishuah

  16. juanluisbaptiste commented on Nov 21, 2018

    @juanluisbaptiste

    I'm getting this error with google drive:

    clone cleanup gdrive-backups-3:
    2018/11/20 22:27:51 Attempt 1/3 failed with 0 errors and: Google drive root '' doesn't support cleanup
    2018/11/20 22:27:51 Attempt 2/3 failed with 0 errors and: Google drive root '' doesn't support cleanup
    2018/11/20 22:27:51 Attempt 3/3 failed with 0 errors and: Google drive root '' doesn't support cleanup
    2018/11/20 22:27:51 Failed to cleanup: Google drive root '' doesn't support cleanup
    

    Command taken from:

    https://rclone.org/drive/#emptying-trash

    Any ideas ?

  17. juanluisbaptiste commented on Nov 21, 2018

    @juanluisbaptiste

    Ooops sorry, system where I was testing had an old release, everything is ok with latest release.

  18. hexxxx commented on Mar 19, 2019

    @hexxxx

    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?

  19. ncw commented on Mar 19, 2019

    @ncw
    MemberAuthor

    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.

  20. hexxxx commented on Mar 20, 2019

    @hexxxx

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions