Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
How do I delete a file using the java api v2. I found DeleteArg, but it doesn't seem to do any thing??? Thanks.
Yes. My code looks like this:
public String deleteFile(String path)
throws DbxException {
DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("Dropbox Documents Delete").build();
DbxClientV2 client = new DbxClientV2(requestConfig, "AccessToken");
FileMetadata fileMetadata = (FileMetadata) client.files().delete(path);
return fileMetadata.getId();
}
Path Parameter: id:MWWBdvN6DaAAAAAAAAAAwA
@cgirecruitment1 I see you opened a new thread for this so I'll follow up there: https://www.dropboxforum.com/t5/API-Support-Feedback/Delete-File-delete-path-not-working/m-p/358771#...
Hi there!
If you need more help you can view your support options (expected response time for a 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!