For some reason, I am unable to find a way to delete files in a shared folder (team, business account). Sample request and response:
curl -s -X POST https://api.dropboxapi.com/2/files/delete_v2 \
--header 'Authorization: Bearer whatever' \
--header 'Content-Type: application/json' \
--header 'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "123456789"}' \
--data '{"path":"/whatever"}' \
--header "Dropbox-API-Select-Admin: dbmid:whatever"
{
"error_summary": "no_permission/",
"error": {
".tag": "no_permission"
}
}
The credentials are valid for the app (generated in the app console), and the admin account is a team admin (got the dbmid from the team member list API endpoint).
Any idea?