Forum Discussion

Ojstn's avatar
Ojstn
New member | Level 2
8 years ago
Solved

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's the line resulting in the error:

 

client.files().deleteV2(path);

where path matches the pattern "(/(.|[\\r\\n])* )|(ns:[0-9]+(/. * )?)", as described in the api docs. 

 

The exception returns the following message: 

 

com.dropbox.core.v2.files.DeleteErrorException: Exception in 2/files/delete: {".tag":"path_lookup","path_lookup":"not_found"}

 

I cannot seem to find any documentation related to this particular issue. I would greatly appreciate it if somebody could help me figure out what I'm doing wrong. 

4 Replies

About Dropbox API Support & Feedback

Node avatar for 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!