<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java API v2 - DeleteError in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/358772#M20441</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am not able to delete any file using pat as "id:somevalue". Does API support this from java? Since I am able to do it from API Explorer.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2019 13:43:31 GMT</pubDate>
    <dc:creator>cgirecruitment1</dc:creator>
    <dc:date>2019-08-05T13:43:31Z</dc:date>
    <item>
      <title>Java API v2 - DeleteError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/290085#M17757</link>
      <description>&lt;P&gt;For clarification, I am using the Java API v2 for DropBox for an AndroidStudio project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the deleteV2(String path) method and keep running into a DeleteErrorException.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the line resulting in the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;.files().deleteV2(path)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;where&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;path&lt;/EM&gt;&amp;nbsp;matches the pattern&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;(/(.|[\\r\\n])* )|(ns:[0-9]+(/. * )?)&lt;SPAN&gt;", as described in the api docs.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exception returns the following message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;com.dropbox.core.v2.files.DeleteErrorException: Exception in 2/files/delete: {".tag":"path_lookup","path_lookup":"not_found"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:11:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/290085#M17757</guid>
      <dc:creator>Ojstn</dc:creator>
      <dc:date>2019-05-29T09:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java API v2 - DeleteError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/290144#M17758</link>
      <description>This 'not_found' error indicates that there is nothing at the specified path (your 'path' variable in this case) in the connected account:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/LookupError.html#NOT_FOUND" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/LookupError.html#NOT_FOUND&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/Metadata.html#getPathLower--&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can get file metadata from getMetadata or listFolder, for example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadata-java.lang.String-" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadata-java.lang.String-&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-&lt;/A&gt;</description>
      <pubDate>Fri, 10 Aug 2018 15:00:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/290144#M17758</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-10T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Java API v2 - DeleteError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/290536#M17760</link>
      <description>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.</description>
      <pubDate>Sun, 12 Aug 2018 15:24:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/290536#M17760</guid>
      <dc:creator>Ojstn</dc:creator>
      <dc:date>2018-08-12T15:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Java API v2 - DeleteError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/358772#M20441</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am not able to delete any file using pat as "id:somevalue". Does API support this from java? Since I am able to do it from API Explorer.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 13:43:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/358772#M20441</guid>
      <dc:creator>cgirecruitment1</dc:creator>
      <dc:date>2019-08-05T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java API v2 - DeleteError</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/358787#M20444</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1192872"&gt;@cgirecruitment1&lt;/a&gt;&amp;nbsp;I see you opened a new thread for this so I'll follow up there:&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/Delete-File-delete-path-not-working/m-p/358771#M20440" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/Delete-File-delete-path-not-working/m-p/358771#M20440&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 14:21:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Java-API-v2-DeleteError/m-p/358787#M20444</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-08-05T14:21:20Z</dc:date>
    </item>
  </channel>
</rss>

