cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
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

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

Delete file permanently

Delete file permanently

bharath_n_v
Explorer | Level 4

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

1 Reply 1

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!

Need more support?
Who's talking

Top contributors to this post

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