cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Permanently_Delete and List_Folder

Permanently_Delete and List_Folder

sacker
Explorer | Level 3
Go to solution

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

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

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
Explorer | Level 3
Go to solution

Hmm

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

But ok thanks for the response..

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    sacker Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?