Forum Discussion

davsun55's avatar
davsun55
New member | Level 2
6 years ago

Ignoring deleted files in the Winforms API

I am using the following code to successfully retrieve all files in a nominated folder:

var lfrLlist = DBClient.Files.ListFolderAsync(DBoxFolder);
foreach (var item in lfrLlist.Result.Entries.Where(i => i.IsFile))

    dostuff
}

However I notice that I am getting all files returned, including deleted files.
There is a .IsDeleted property, but that is false for every file, even though I have double-checked through the browser interface and quite a number are deleted.

How can I ignore all deleted files - or even permanently delete them if that's easier.

Thanks

David

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the report! I just gave this a try myself, and it appears to be working properly for me, so we'll need to look into this for you specifically.

    Please open an API ticket with:

    • the version number of the SDK you're using
    • the affected user ID(s)
    • a few sample file paths/names for deleted files that are being returned as not-deleted

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,943 PostsLatest Activity: 2 hours ago
351 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!