dropbox-sdk-python icon indicating copy to clipboard operation
dropbox-sdk-python copied to clipboard

Dropbox.files_delete_batch and similiar methods to support deleting a specific version

Open gmonkman opened this issue 1 year ago • 1 comments

We are running an unattended process which uploads files from a raspberry pi. These files can become corrupt. The corrupt files remain in the file history.

I would like to detect these corrupt file versions and remove them from the version history.

Could the family of Dropbox.file_delete* (e.g. Dropbox.files_delete_batch) support passing the file version ID? DeleteArgs I believe is passed (as opposed to the a dropbox file path), hence it maybe necessary to add another field to DeleteArgs.

It would actually be amazing these methods would also accept FileMetadata instances to save messing around extracting ids, paths etc. But that is another feature: :)

thanks.

gmonkman avatar May 07 '24 17:05 gmonkman

The Dropbox API doesn't offer this functionality, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

greg-db avatar May 07 '24 17:05 greg-db