One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
bharath_n_v
5 years agoExplorer | Level 4
Delete file permanently
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
- Greg-DB
Dropbox Staff
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:
- the client ID
- the member ID
- the file ID
- the timestamp of the call
Please don't include your access token though. Thanks!
About Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 2 hours ago
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 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!