Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Ojstn
8 years agoNew member | Level 2
Java API v2 - DeleteError
For clarification, I am using the Java API v2 for DropBox for an AndroidStudio project. I am trying to use the deleteV2(String path) method and keep running into a DeleteErrorException. Here...
- 8 years agoThis 'not_found' error indicates that there is nothing at the specified path (your 'path' variable in this case) in the connected account:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/LookupError.html#NOT_FOUND
You should fix your path value to specify the correct path string for the file you want to delete. You can get this from Metadata.getPathLower for the Metadata object for the file, for instance:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--
You can get file metadata from getMetadata or listFolder, for example:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadata-java.lang.String-
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-
Greg-DB
Dropbox Community Moderator
8 years agoThis 'not_found' error indicates that there is nothing at the specified path (your 'path' variable in this case) in the connected account:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/LookupError.html#NOT_FOUND
You should fix your path value to specify the correct path string for the file you want to delete. You can get this from Metadata.getPathLower for the Metadata object for the file, for instance:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--
You can get file metadata from getMetadata or listFolder, for example:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadata-java.lang.String-
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/LookupError.html#NOT_FOUND
You should fix your path value to specify the correct path string for the file you want to delete. You can get this from Metadata.getPathLower for the Metadata object for the file, for instance:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--
You can get file metadata from getMetadata or listFolder, for example:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadata-java.lang.String-
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-
Ojstn
8 years agoNew member | Level 2
Thanks. I managed to fix the issue with some trial and error with the path variable, but it's nice to know where to check for explicit path of each item.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!