We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

cgirecruitment1's avatar
cgirecruitment1
Explorer | Level 4
6 years ago
Solved

Delete File (delete (path)) not working

Hi Team,

 

The client.files().delete(path)  is not working as expected when path is given as "id:somevalue". However, I am able to delete files using dropbox API explorer. But get the following error, when trying to d it from Java. 

String 'path' does not match pattern

  • What version number of the Dropbox Java SDK do you have installed? It's possible you have an older version from before this was supported for the delete method.

    If you're not already using the latest release, currently v3.1.1, please upgrade to that and let me know if that doesn't help.

2 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    What version number of the Dropbox Java SDK do you have installed? It's possible you have an older version from before this was supported for the delete method.

    If you're not already using the latest release, currently v3.1.1, please upgrade to that and let me know if that doesn't help.

  • cgirecruitment1's avatar
    cgirecruitment1
    Explorer | Level 4
    6 years ago

    Hi Greg,

    Yes, I was using 3.0.3. Moving to 3.1.1 resolved it,

    Thanks much. :)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 9 months ago
411 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!