cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Dropbox API v2 /delete issue + improvement request

Dropbox API v2 /delete issue + improvement request

Antti R.
New member | Level 1

Hi Gregory, team

Just few notes on /delete in Dropbox API v2.

https://www.dropbox.com/developers/documentation/http/documentation#files-delete 

Issue:

The return codes for DELETE are not very clear. One can get a path_write (WriteError) with "conflict" (documented as "Couldn't write to the target path because there was something in the way").

This would made sense IF we can pass REV in delete request but not otherwise. But we cannot pass REV, which leads to main point:

Improvement:

Would be great to be able to pass REV on DELETE. This would make file operations secure. Example scenario where we need REV:

User has two devices and our app. Goes offline with both devices. Works on same document on both devices but deletes document in one device (while offline). Goes online first with device that has the document. App loads the file to dropbox. Goes online with other device (with deleted document).  App loads user deletion request and deletes the work (!).

With REV we could detect these conflicts.

Yes, I know that I can get metadata just before deletion. But it is not secure. Just helps to minimize the probability of accidental deletion.

PS: No need to response. Just for you to know.

Regards,

Antti

1 Reply 1

Greg-DB
Dropbox Staff

Hi Antti, thanks for the detailed feedback! It's very much appreciated. I'm sending it along to the team now.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?