We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Charles R.5
8 years agoExplorer | Level 4
Cannot delete a folder with a '.' in the middle its name?
When I use the API to delete a folder with: https://api.dropboxapi.com/2/files/delete_v2 If the path to the folder is: /somepath/mydomain.com The folder will not delete. Interestingly, a...
Charles R.5
8 years agoExplorer | Level 4
Just out of interest do you have an API directive that only deletes folders. So, that if a file path is sent in by mistake, the request fails?
Greg-DB
Dropbox Community Moderator
8 years agoNo, we don't have anything like that, but I'll pass that along as a feature request.
- Charles R.58 years agoExplorer | Level 4Greg. Thanks. Expanding, on my original request. Although, it is possible to check the 'get_metadata' of the path to find out whether the '.tag' is a folder or file, & then send a delete directive, this is a little long winded. It would be great, if Dropbox could add another argument to the 'delete' directive, called 'only_delete_path_of_tag_type', with possible values of 'file' & 'folder'. This would be a really cool feature...
- Greg-DB8 years ago
Dropbox Community Moderator
Charles R.5 I just wanted to follow up on this with two notes:
- The team pointed out that if you want to make sure you're deleting a folder, you can specify the folder's "id" as the `path` value for the delete_v2 call
- For the opposite case, where you want to make sure you're deleting a specific file, we added a `parent_rev` parameter to delete_v2.
- Charles R.58 years agoExplorer | Level 4Thanks Greg. The 'id' feature is useful.
- noornoor12gmal8 years agoHelpful | Level 5{"error":true,"msg":"The token paramter is missing. Cannot authorize API request.","data":[]}
- Greg-DB8 years ago
Dropbox Community Moderator
noornoor12gmal If you're having trouble with the Dropbox API, please open a new thread with the details of the issue. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!