You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Bonetooth's avatar
Bonetooth
New member | Level 2
5 years ago

Asp.Net File Delete

Good Afternoon

 

I am trying to delete an uploaded image from my dropbox account via the api v2 on visual studio. I'm attempting to use Deletev2Async, however the path I'm sending is incorrect. When uploading an image, i'm storing the url that let's me show the image on my database but when using that I keep getting errors on the path.

 

[Edit]

Nvm Solved it. Thanks Anyway :)

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    I'm glad to hear you already sorted this out.

     

    For anyone else who comes across this with the same issue, note that to delete a file via the API, you should supply the Dropbox path of the file, not the URL. For example, when calling DeleteV2Async, you can supply the Metadata.PathLower or FileMetadata.Id value as the "path" parameter.

  • Bonetooth's avatar
    Bonetooth
    New member | Level 2

    For my solution, I saved the image name with extension and for the DeleteV2Async put:

     

    "/Images/" + that image name

     

    And it worked :)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 2 days ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!