cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right 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: 

Asp.Net File Delete

Asp.Net File Delete

Bonetooth
New member | Level 2

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 🙂

2 Replies 2

Greg-DB
Dropbox 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
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 🙂

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Bonetooth New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?