<?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: How to delete all files in a folder by API in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748777#M3903</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1800221"&gt;@Kirill-TpuSoft&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That’s correct, the /2/files/permanently_delete endpoint is only available for team-linked apps. The permanent delete API functionality is unavailable for individual user-linked apps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 17:29:10 GMT</pubDate>
    <dc:creator>iNeil</dc:creator>
    <dc:date>2024-02-02T17:29:10Z</dc:date>
    <item>
      <title>How to delete all files in a folder by API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/530901#M1997</link>
      <description>&lt;P&gt;Hi API Team,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using dropbox folders temporarily to upload videos to youtube. I need to clean/delete files from Dropbox files after I upload them to youtube since I don't need them anymore and to free up space in Dropbox.&lt;BR /&gt;&lt;BR /&gt;1. Do you have a setting where we can set time to delete files? ex: every day, every Monday at 23:59&lt;BR /&gt;2. Do you have a cron job/automation/bot/software that will clean folders for example at 23:59 every day?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am able to delete individual files and folders as follows (API Doc):&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/permanently_delete \
    --header "Authorization: Bearer " \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/Homework/math/Prime_Numbers.txt\"}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;How to delete all files in a folder with out deleting the folder? Something like *.* for all files:&lt;/P&gt;&lt;PRE&gt;{
    "path": "/uploads/*.*"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I could not interpret the path pattern -&amp;nbsp;&lt;STRONG&gt;path&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;String(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)")&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please guide me to delete all files in a folder ?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 04:14:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/530901#M1997</guid>
      <dc:creator>lyza3</dc:creator>
      <dc:date>2021-07-05T04:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all files in a folder by API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/531038#M2000</link>
      <description>&lt;P&gt;The Dropbox API does not offer a way to configure automatic deletions like this, nor does it offer a way to specify a wildcard like that or otherwise just delete everything in a particular folder without deleting the folder itself, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, you'd need to specify each item you do want to delete. Also, /2/files/permanently_delete is for permanently deleting; you can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-delete" target="_self"&gt;/2/files/delete_v2&lt;/A&gt; to just delete things. (Deleted items are automatically permanently deleted after a certain amount of time. You can find &lt;A href="https://help.dropbox.com/files-folders/restore-delete/deleted-files" target="_self"&gt;more information in the help center&lt;/A&gt;.) Also, you can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-delete_batch" target="_self"&gt;/2/files/delete_batch&lt;/A&gt; to delete multiple items at once (though you still need to specify each one).&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 16:03:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/531038#M2000</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-07-05T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all files in a folder by API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748696#M3897</link>
      <description>&lt;P&gt;Hi Greg&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;I tried to call api&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-permanently_delete" target="_self"&gt;https://api.dropboxapi.com/2/files/permanently_delete&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;but received the following message:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Error in call to API function "files/permanently_delete": Your app is not permitted to access this endpoint because it does not have the required scope 'files.permanent_delete'. The owner of the app can enable the scope for the app using the Permissions tab on the App Console.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;In the App settings of permissions this scope (&lt;SPAN&gt;&lt;EM&gt;files.permanent_delete)&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;is avalaible only for Team, but the api&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-permanently_delete" target="_self"&gt;https://api.dropboxapi.com/2/files/permanently_delete&lt;/A&gt;&amp;nbsp;- is user endpoint. I can't enable&amp;nbsp;&lt;EM&gt;files.permanent_delete&amp;nbsp;&amp;nbsp;&lt;/EM&gt;for the individual scopes&lt;EM&gt;.&lt;/EM&gt;&amp;nbsp;I can't find any way to use this api function. Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Feb 2024 11:52:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748696#M3897</guid>
      <dc:creator>Kirill-TpuSoft</dc:creator>
      <dc:date>2024-02-02T11:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all files in a folder by API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748777#M3903</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1800221"&gt;@Kirill-TpuSoft&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That’s correct, the /2/files/permanently_delete endpoint is only available for team-linked apps. The permanent delete API functionality is unavailable for individual user-linked apps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 17:29:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748777#M3903</guid>
      <dc:creator>iNeil</dc:creator>
      <dc:date>2024-02-02T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all files in a folder by API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748781#M3904</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1706500"&gt;@iNeil&lt;/a&gt;, In general permanent deletion is available for all users (including personal). Why does API behave different at all? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Isn't it some sort of oversight?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 17:37:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748781#M3904</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-02-02T17:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all files in a folder by API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748801#M3905</link>
      <description>&lt;P&gt;We don't have information to share on the decisions behind the design of any particular endpoint/scope on the API, but this is the expected behavior for this endpoint and scope.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 18:11:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748801#M3905</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-02T18:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete all files in a folder by API</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748913#M3906</link>
      <description>&lt;P&gt;Thanks a lot for fast support, got it&amp;nbsp;&lt;BR /&gt;Im Sorry,&amp;nbsp; I inadvertently didn't notice that the documentation included the following text: &lt;EM&gt;“Note: This endpoint is only available for Dropbox Business apps.”&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 08:22:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-delete-all-files-in-a-folder-by-API/m-p/748913#M3906</guid>
      <dc:creator>Kirill-TpuSoft</dc:creator>
      <dc:date>2024-02-03T08:22:48Z</dc:date>
    </item>
  </channel>
</rss>

