Showing results for 
Show  only  | Search instead for 
Did you mean: 
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Discuss Dropbox Developer & API

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete file permanently

Delete file permanently

Explorer | Level 4



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");"deleted file permanently with fileId {}", "fileId");
} catch (Exception e) {
throw e;


Any help would be much appreciated. 


Thanks in advance


1 Reply 1

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!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?