<?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: Files Delete batch in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/372028#M20956</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/991927"&gt;@buttflattery&lt;/a&gt;&amp;nbsp;Yes, when the API returns an async job like this, you'll need to use the relevant endpoint to periodically check the status of the job until it's done.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Dropbox API doesn't offer webhook functionality for this, or any other way to be automatically notified of async job status changes,&amp;nbsp;but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 19:22:33 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-10-16T19:22:33Z</dc:date>
    <item>
      <title>Files Delete batch</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/285604#M17503</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;dbx.filesListFolder({path: '/app', recursive: true})
    .then(response =&amp;gt; {

      let path = response.entries.map(entry =&amp;gt; {
        return {path: entry.path_lower};
      })
 
      dbx.filesDeleteBatch({entries: path})
      .then(response =&amp;gt; {
        console.log(response);
      })
    })&lt;/PRE&gt;
&lt;P&gt;Hi there, I am trying to delete several files/folders at once, however, when I use the 'filesDeleteBatch' method it does not delete anything. Its response in the '.then()' looks like this:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{ '.tag': 'async_job_id', async_job_id: '...idNumber...' }&lt;/PRE&gt;
&lt;P&gt;How can i solve this problem?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:11:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/285604#M17503</guid>
      <dc:creator>philip-lf</dc:creator>
      <dc:date>2019-05-29T09:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Files Delete batch</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/285612#M17504</link>
      <description>&lt;P&gt;The &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDeleteBatch__anchor" target="_self"&gt;filesDeleteBatch&lt;/A&gt;&amp;nbsp;method does not necessarilly immediately delete the requested files. It can create and return the ID for an asynchronous job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should use the &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDeleteBatchCheck__anchor" target="_self"&gt;filesDeleteBatchCheck&lt;/A&gt;&amp;nbsp;method, supplying the async job ID you&amp;nbsp;received from&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDeleteBatch__anchor" target="_self"&gt;filesDeleteBatch&lt;/A&gt;, to check on the job's status. If the job failed, it will indicate why.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 18:26:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/285612#M17504</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-07-20T18:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Files Delete batch</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/372010#M20955</link>
      <description>&lt;P&gt;so this means that we need to periodically check manually by sending the hit to `delete_batch/check` API endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isnt there any way that we can use webhook against the delete_batch which should automatically submit the payload to the given URL?&lt;/P&gt;&lt;P&gt;This feature can be useful.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:20:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/372010#M20955</guid>
      <dc:creator>buttflattery</dc:creator>
      <dc:date>2019-10-16T18:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Files Delete batch</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/372028#M20956</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/991927"&gt;@buttflattery&lt;/a&gt;&amp;nbsp;Yes, when the API returns an async job like this, you'll need to use the relevant endpoint to periodically check the status of the job until it's done.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Dropbox API doesn't offer webhook functionality for this, or any other way to be automatically notified of async job status changes,&amp;nbsp;but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 19:22:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Files-Delete-batch/m-p/372028#M20956</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-10-16T19:22:33Z</dc:date>
    </item>
  </channel>
</rss>

