We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Dan R.23's avatar
Dan R.23
New member | Level 1
9 years ago

permanently delete file java api v2

How do you use permanentlyDelete in java api v2?   thanks
  • Greg-DB's avatar
    9 years ago

    Hi Dan, the permanentlyDelete method you mentioned is the right method for permanently deleting files. Have you tried using it and run in to any issues? If so, please share the error you're getting if you're still having trouble.

    Note that per the documentation though, it's only available to Dropbox for Business apps. You can register a "team member file access" Dropbox Business app here:

    https://www.dropbox.com/developers/apps/create

    Using that would look like:

     DbxClientV2 client = new DbxTeamClientV2(config, ACCESS_TOKEN).asMember(teamMemberId);

    client.files().permanentlyDelete(filePath);