You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Amiram's avatar
Amiram
New member | Level 2
7 years ago

Delete does not work on files

hey guys i'm trying to delete a file and always get `path_lookup/not_found/..` the code is: import requests import json url = "https://api.dropboxapi.com/2/files/delete_v2" headers = { "Authoriza...
  • Greg-DB's avatar
    7 years ago

    Does that file exist in the "team space"? By default, API calls will only look in "member folders", so this code won't work if the file is in the team space. To operate in the team space, you need to set the 'Dropbox-API-Path-Root' header. You can find information on how to do this in the Namespace Guide:

    https://www.dropbox.com/developers/reference/namespace-guide

    (And thanks for the note on the API Explorer being outdated! I'll ask the team to update it.)