Skip to content

Instantly share code, notes, and snippets.

@ishuah
Created March 25, 2019 17:13
Show Gist options
  • Save ishuah/b6a95d19063ff7f450ddc6959e3f0d57 to your computer and use it in GitHub Desktop.
Save ishuah/b6a95d19063ff7f450ddc6959e3f0d57 to your computer and use it in GitHub Desktop.
func (f *Fs) CleanUp() error {
err := f.pacer.Call(func() (bool, error) {
err := f.svc.Files.EmptyTrash().Do()
return shouldRetry(err)
})
if err != nil {
return err
}
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment