Discuss Dropbox Developer & API
Hi,
We are trying to delete files permanently which are present in team folder using java sdk. When we try to hit api with as member we are getting exception of no_write_permission but file is also getting deleted on dropbox. Can you guys please help us, why this is happening? Code for deletion is as follows.
try {
DbxRequestConfig config = DbxRequestConfig.newBuilder("clientIdentifier").withAutoRetryEnabled(3).build();
DbxCredential credential = new DbxCredential("accessToken");
DbxTeamClientV2 clientV2 = new DbxTeamClientV2(config, credential);
clientV2.asMember("userId").withPathRoot(pathRoot).files().permanentlyDelete("fileId");
log.info("deleted file permanently with fileId {}", "fileId");
} catch (Exception e) {
throw e;
}
Any help would be much appreciated.
Thanks in advance
Bharath
I can't seem to reproduce this unexpected behavior, so we'll need to look into this more specifically for you. Please open an API ticket for this and include:
Please don't include your access token though. Thanks!
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!