Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

sacker's avatar
sacker
Explorer | Level 3
7 years ago
Solved

Permanently_Delete and List_Folder

Hi All

I'm afraid i don't understand something here.

 

Let's say i want to list all DELETED FOLDERS (or Files) form a path.

I don't really now what's the best way to filter it, but i am using /list_folder with return_deleted at true.

I am getting ALL Folders, deleted and Non deleted. Expected behavior.

I am then keeping only the entries with a tag "deleted".

=> Is ther a way i can request ONLY Deleted folders ?

 

Now that i have my "Deleted" folders, I notice that i only see there PERMANENTLY DELETED FOLDERS.

Using the API permanently_delete, or using the web portal, with the path for those folders that should already be deleted, i get an error (Expected.. they are already permanently deleted...)

--> Is it normal that list_folder still sees folders that are already purged/Permanently deleted ?

--> How can i get only a list of deleted folders that are NOT PERMANENTLY DELETED already.. i can check each time if the file or folder still exists (get_metadata).. but that is really not a cheap way.. too much requests, it takes a long time with all the rate limits !!

 

Thanks a lot

 

  • Thanks for writing this up.

     

    There isn't a way to get to request only deleted folders, unfortunately, or a way to tell if a "deleted" entry was most recently for a file or folder, but I'll pass this along as a feature request. 

     

    And yes, it is expected that deleted entries are returned for permanently deleted items. (This is for the sake of correctness, in case the app was previously aware of the entry. The deleted entry is necessary to indicate that it was deleted and should be removed from the app's state.)

     

    I'm afraid there isn't a good way to distinguish between the deleted and permanently deleted states. I'll send this feedback along to the team.

2 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    Thanks for writing this up.

     

    There isn't a way to get to request only deleted folders, unfortunately, or a way to tell if a "deleted" entry was most recently for a file or folder, but I'll pass this along as a feature request. 

     

    And yes, it is expected that deleted entries are returned for permanently deleted items. (This is for the sake of correctness, in case the app was previously aware of the entry. The deleted entry is necessary to indicate that it was deleted and should be removed from the app's state.)

     

    I'm afraid there isn't a good way to distinguish between the deleted and permanently deleted states. I'll send this feedback along to the team.

  • sacker's avatar
    sacker
    Explorer | Level 3
    7 years ago

    Hmm

    Very strange in my mind, that permanently deleted are still to be showed, without distinction...

    But ok thanks for the response..

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!