<?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: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/336529#M19592</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1065163"&gt;@LukFromTheSky&lt;/a&gt;&amp;nbsp;No, unfortunately I don't have an update on either of these feature requests.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 14:48:08 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-03-29T14:48:08Z</dc:date>
    <item>
      <title>Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270731#M15996</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm using the Java SDK 3x (API v2) and I'm looking for pointers/code to automatically&amp;nbsp;delete&amp;nbsp;files that are X number of days old.&amp;nbsp; There is post on this forum which is doing this in python however not seen anything for Java.&amp;nbsp; I can't use any third party tools due to the context of my client's application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the European GDPR I feel this feature should be in built into the&amp;nbsp;uploading process, that is defining a 'retention schedule' for all the files.&amp;nbsp; If this feature is&amp;nbsp;going to be implemented will it be in time for when the Eurpoean GDPR&amp;nbsp; is active in May 2018?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards and thanks for any assistance &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270731#M15996</guid>
      <dc:creator>outsidecoder</dc:creator>
      <dc:date>2019-05-29T09:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270733#M15997</link>
      <description>Things are not looking good for business users in Europe. We should be able tell when a folder was modified* for GDPR.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropboxforum.com/t5/API-support/Get-the-modified-date-for-a-folder-or-file/m-p/184489/highlight/true#M7748" target="_blank"&gt;https://www.dropboxforum.com/t5/API-support/Get-the-modified-date-for-a-folder-or-file/m-p/184489/highlight/true#M7748&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;*Ideally it should be the creation date, however that is probably a grey area for lawyers to argue over.</description>
      <pubDate>Sat, 31 Mar 2018 20:42:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270733#M15997</guid>
      <dc:creator>outsidecoder</dc:creator>
      <dc:date>2018-03-31T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270744#M15998</link>
      <description>&lt;P&gt;So created a quick bit of code to delete files older than X days but its very rough and hasn't been tested properly.&amp;nbsp; It doesn't get round the issue of dates of folders, nor does it get round the issue of not knowing the creation date.&amp;nbsp; Comments welcomed as there must be a better way than this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   enum MODIFIED_DATE_TYPE {
        SERVER_MODIFIED_DATE, CLIENT_MODIFIED_DATE;
    }

    private long deleteFilesOlderThanXDays(long numDays, MODIFIED_DATE_TYPE TYPE) throws DbxException {
        //ALPHA - add protection against going above long.MAXIMUM
        long numberFilesDeleted = 0;
        ListFolderBuilder listFolderBuilder = client.files().listFolderBuilder("");
        ListFolderResult result = listFolderBuilder.withRecursive(true).start();

        while (!result.getHasMore()) {
            if (result != null) {
                for (Metadata entry : result.getEntries()) {
//                    System.out.println("Analysing: " + entry.getPathLower());
                    if (entry instanceof FileMetadata) {
                        Date dateOfFile;
                        switch (TYPE) {
                            case CLIENT_MODIFIED_DATE:
                                dateOfFile = ((FileMetadata) entry).getServerModified();
                                break;

                            case SERVER_MODIFIED_DATE:
                                dateOfFile = ((FileMetadata) entry).getClientModified();
                                break;
                            default:
                                throw new AssertionError();
                        }
                        //Check to see if the current file is too old
                        if (getDaysBetween(new Date(), dateOfFile) &amp;gt; numDays) {
                            this.deleteFile(entry.getPathLower());
                            numberFilesDeleted++;
                        }
                    }
                }
                if (!result.getHasMore()) {
                    return numberFilesDeleted;
                }
                try {
                    result = client.files().listFolderContinue(result.getCursor());
                } catch (DbxException e) {
                    //ALPHA - TIDY UP HERE.  CATCHING or THROWING??? - GDPR - Note what you're logging
                    //  log.info("Could NOT get listFolderContinue");
                }
            }
        }
        return numberFilesDeleted;
    }&lt;/PRE&gt;</description>
      <pubDate>Sat, 31 Mar 2018 23:10:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270744#M15998</guid>
      <dc:creator>outsidecoder</dc:creator>
      <dc:date>2018-03-31T23:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270895#M16010</link>
      <description>&lt;P&gt;Thanks for the post! Dropbox doesn't offer a way to do this automatically via the API. I'm sending this along as feature requests for created and modified times for folders, as well as a native way to have&amp;nbsp;Dropbox&amp;nbsp;automatically delete files after a certain amount of time. I can't promise if/when these would be implemented though.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 16:20:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/270895#M16010</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-02T16:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/336509#M19591</link>
      <description>&lt;P&gt;Hello Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was there any progress on that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luk&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:37:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/336509#M19591</guid>
      <dc:creator>LukFromTheSky</dc:creator>
      <dc:date>2019-03-29T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/336529#M19592</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1065163"&gt;@LukFromTheSky&lt;/a&gt;&amp;nbsp;No, unfortunately I don't have an update on either of these feature requests.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 14:48:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/336529#M19592</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-29T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/417543#M22481</link>
      <description>&lt;P&gt;I'm a little shocked there isn't a way to do this.&amp;nbsp; Has there been any progress on implementing this functionality?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 12:27:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/417543#M22481</guid>
      <dc:creator>TateFF</dc:creator>
      <dc:date>2020-05-06T12:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/417588#M22484</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/717542"&gt;@TateFF&lt;/a&gt;&amp;nbsp;No, unfortunately I don't have any news on this request.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:40:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/417588#M22484</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-06T14:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/460096#M23642</link>
      <description>&lt;P&gt;Is there a reason this feature isn't being built?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 23:49:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/460096#M23642</guid>
      <dc:creator>mpk2</dc:creator>
      <dc:date>2020-10-08T23:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/460233#M23644</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1360207"&gt;@mpk2&lt;/a&gt;&amp;nbsp;I can't speak to why&amp;nbsp;Dropbox may have decided to work on any particular feature request or not.&amp;nbsp;This feature request is still open and I'll follow up here with any updates if/when I have anything to share. I don't have any news on this right now though.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 15:17:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/460233#M23644</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-10-09T15:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/483324#M24339</link>
      <description>&lt;P&gt;This would be a very helpful feature for companies like mine as we are dealing with 1000s of clinet's files and we only need them for 3 months. After 3 months they can be deleted from Dropbox automaticly instead we go through all files. It would be nice to have an option for not deleted from local computer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 13:17:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/483324#M24339</guid>
      <dc:creator>ABC15</dc:creator>
      <dc:date>2020-12-31T13:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/483371#M24341</link>
      <description>&lt;P&gt;Thanks for the additional&amp;nbsp;feedback!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 15:18:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/483371#M24341</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-31T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/506178#M25027</link>
      <description>&lt;P&gt;I've been looking for a way to automate deleting files from Dropbox for my company usage, and I recall reading this post late last year. Interestingly, in Feb, I found a site that support auto-deletion for files on Dropbox - it's called &lt;A href="http://fileql.com/" target="_self"&gt;Fileql&lt;/A&gt;.&amp;nbsp;I set up my personal Dropbox just to test this out and I'm still in my free trial period, but so far it seems to work as expected. You'll create a rule and schedule how often it should run and define the terms for the rule. Hopefully, this works for someone else.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I'm not a developer so don't know how to hack these things so I'm sticking to these guys if all goes well.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 04:33:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/506178#M25027</guid>
      <dc:creator>qopera</dc:creator>
      <dc:date>2021-03-19T04:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/641456#M29533</link>
      <description>&lt;P&gt;Is there any chance that this feature will finally be introduced?&lt;BR /&gt;Since 2018 this requirement exists in this thread&lt;BR /&gt;My company is in dire need of this feature.&lt;BR /&gt;We will have to look for another cloud provider otherwise&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 07:34:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/641456#M29533</guid>
      <dc:creator>Joachim_H</dc:creator>
      <dc:date>2022-12-05T07:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/641627#M29535</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1597468"&gt;@Joachim_H&lt;/a&gt; While this isn't available/configurable via the Dropbox API as originally requested in this thread, the Dropbox product does offer &lt;A href="https://help.dropbox.com/security/data-retention" target="_blank"&gt;a retention policy feature&lt;/A&gt; that may be helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 16:56:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/641627#M29535</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-05T16:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/774151#M33833</link>
      <description>&lt;P&gt;It is super easy to have a Google script code with Chatgpt to delete specific filetypes, after x days ... and other filtering conditions as you like: notification to email after completion, trigger runs everyday, week or more when you use Google Drive. I'm still not sure how to do that with Dropbox.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 03:34:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/774151#M33833</guid>
      <dc:creator>tuancrab</dc:creator>
      <dc:date>2024-05-30T03:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically Deleting Files After X Days - General Data Protection Regulation May 2018</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/774375#M33846</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1576118"&gt;@tuancrab&lt;/a&gt; Thanks for the feedback. Dropbox doesn't offer a feature exactly like this, but I've sent this along as a feature request.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 18:06:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Automatically-Deleting-Files-After-X-Days-General-Data/m-p/774375#M33846</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-05-30T18:06:29Z</dc:date>
    </item>
  </channel>
</rss>

