<?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 Delete does not work on files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Delete-does-not-work-on-files/m-p/297497#M18049</link>
    <description>&lt;P&gt;hey guys i'm trying to delete a file and always get `&lt;SPAN&gt;path_lookup/not_found/..`&lt;BR /&gt;&lt;BR /&gt;the code is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;import&lt;/SPAN&gt; requests &lt;SPAN class="hljs-keyword"&gt;import&lt;/SPAN&gt; json url = &lt;SPAN class="hljs-string"&gt;"&lt;A href="https://api.dropboxapi.com/2/files/delete_v2" target="_blank"&gt;https://api.dropboxapi.com/2/files/delete_v2&lt;/A&gt;"&lt;/SPAN&gt; headers = { &lt;SPAN class="hljs-string"&gt;"Authorization"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"Bearer &amp;lt;access-token&amp;gt;"&lt;/SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-string"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Content-Type"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"application/json"&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class="hljs-string"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Dropbox-Api-Select-Admin"&lt;/SPAN&gt;:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class="hljs-string"&gt;"dbmid:AADnRVGZHenLtFbLVdHDkqEJg3Dou4hWF4g"&lt;/SPAN&gt; }&lt;BR /&gt;data = { &lt;SPAN class="hljs-string"&gt;"path"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"id:Kd_cXYig9pAAAAAAAAAAQw"&lt;/SPAN&gt; } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;r = requests.post(url, headers=headers, data=json.dumps(data))&lt;BR /&gt;&lt;BR /&gt;further more&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_delete" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_delete&lt;BR /&gt;&lt;/A&gt;only lets you try the deprecated api call. trying on stackoverflow as well:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/52368896/cant-delete-files-using-a-dropbox-business-team-token" target="_blank"&gt;https://stackoverflow.com/questions/52368896/cant-delete-files-using-a-dropbox-business-team-token&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-09-17 at 15.59.48.png" style="width: 852px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/6023i369A544EAC11E2E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-09-17 at 15.59.48.png" alt="Screen Shot 2018-09-17 at 15.59.48.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:10:26 GMT</pubDate>
    <dc:creator>Amiram</dc:creator>
    <dc:date>2019-05-29T09:10:26Z</dc:date>
    <item>
      <title>Delete does not work on files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Delete-does-not-work-on-files/m-p/297497#M18049</link>
      <description>&lt;P&gt;hey guys i'm trying to delete a file and always get `&lt;SPAN&gt;path_lookup/not_found/..`&lt;BR /&gt;&lt;BR /&gt;the code is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;import&lt;/SPAN&gt; requests &lt;SPAN class="hljs-keyword"&gt;import&lt;/SPAN&gt; json url = &lt;SPAN class="hljs-string"&gt;"&lt;A href="https://api.dropboxapi.com/2/files/delete_v2" target="_blank"&gt;https://api.dropboxapi.com/2/files/delete_v2&lt;/A&gt;"&lt;/SPAN&gt; headers = { &lt;SPAN class="hljs-string"&gt;"Authorization"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"Bearer &amp;lt;access-token&amp;gt;"&lt;/SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-string"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Content-Type"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"application/json"&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class="hljs-string"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Dropbox-Api-Select-Admin"&lt;/SPAN&gt;:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class="hljs-string"&gt;"dbmid:AADnRVGZHenLtFbLVdHDkqEJg3Dou4hWF4g"&lt;/SPAN&gt; }&lt;BR /&gt;data = { &lt;SPAN class="hljs-string"&gt;"path"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"id:Kd_cXYig9pAAAAAAAAAAQw"&lt;/SPAN&gt; } &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;r = requests.post(url, headers=headers, data=json.dumps(data))&lt;BR /&gt;&lt;BR /&gt;further more&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_delete" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#files_delete&lt;BR /&gt;&lt;/A&gt;only lets you try the deprecated api call. trying on stackoverflow as well:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/52368896/cant-delete-files-using-a-dropbox-business-team-token" target="_blank"&gt;https://stackoverflow.com/questions/52368896/cant-delete-files-using-a-dropbox-business-team-token&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-09-17 at 15.59.48.png" style="width: 852px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/6023i369A544EAC11E2E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-09-17 at 15.59.48.png" alt="Screen Shot 2018-09-17 at 15.59.48.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:10:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Delete-does-not-work-on-files/m-p/297497#M18049</guid>
      <dc:creator>Amiram</dc:creator>
      <dc:date>2019-05-29T09:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete does not work on files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Delete-does-not-work-on-files/m-p/297511#M18051</link>
      <description>&lt;P&gt;edited the main comment&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:09:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Delete-does-not-work-on-files/m-p/297511#M18051</guid>
      <dc:creator>Amiram</dc:creator>
      <dc:date>2018-09-17T13:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete does not work on files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Delete-does-not-work-on-files/m-p/297526#M18055</link>
      <description>&lt;P&gt;Does that file exist in the&amp;nbsp;&lt;A href="https://www.dropbox.com/help/business/team-space-overview" target="_blank"&gt;"team space"&lt;/A&gt;? By default, API calls will only look in "member folders", so this code won't work if the file is in the team space. To operate in the team space, you need to set the 'Dropbox-API-Path-Root' header. You can find information on how to do this in the Namespace Guide:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/namespace-guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(And thanks for the note on the API Explorer being outdated! I'll ask the team to update it.)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 14:08:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Delete-does-not-work-on-files/m-p/297526#M18055</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-09-17T14:08:19Z</dc:date>
    </item>
  </channel>
</rss>

