One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Navneet123
4 years agoNew member | Level 2
Embedder like pre built component for deleting files
I have a web application where i need user to be able to upload, view, delete files and folders using dropbox. I am using embedder and saver to do the above. But i am not able to allow user to delete files. Is there a way i can do this via a pre built component? If not, is there a way i can let user choose a file on these pre built compone, retrieve file id and then hit delete api. I do not want to build all components myself from scratch using apis.
- Greg-DB
Dropbox Staff
Dropbox doesn't offer a pre-built component like that for deleting files, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
You could use the Dropbox Chooser to have the user select file(s) though, at which point the app would then receive the corresponding file ID(s). Refer to the Dropbox Chooser documentation for information on that:
https://www.dropbox.com/developers/chooser
Then, you could use the Dropbox API /2/files/delete_v2 endpoint to delete the file(s) by ID:
https://www.dropbox.com/developers/documentation/http/documentation#files-delete
Using an endpoint like that requires authorization. Refer to the OAuth Guide and authorization documentation for information on that:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 49 minutes ago
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!