-1

I basically want to delete all versions except for the currently designated version of the file.

For that I am using BoxClient.getFilesManager().getFileVersions(_fileId, reqObj);

The first entry in the returned List<BoxFileVersion> object is the current version.

There doesn't seem to be any API in the Box SDK (for Java) to delete a version - is this being planned soon ? Is there a better way ?

SeekingAlpha
  • 7,489
  • 12
  • 35
  • 44
curiouscoder
  • 81
  • 3
  • 9

1 Answers1

0

The SDK is open-sourced on github. If you feel like it, you can submit a pull request with your change to add in version delete. How to do it is documented in the API documentation.

Peter
  • 2,551
  • 1
  • 14
  • 20