dropbox / dropbox-sdk-python

The Official Dropbox API V2 SDK for Python
https://www.dropbox.com/developers
MIT License
929 stars 318 forks source link

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

Open gmonkman opened 2 months ago

gmonkman commented 2 months ago

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.

greg-db commented 2 months ago

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.