0

Android sample code has trash() method (see same code github)

DriveFile file = Drive.DriveApi.getFile(getGoogleApiClient(), result.getDriveId());
file.trash(getGoogleApiClient()).setResultCallback(trashCallback);

I use the latest google play service library (updated on March 17).

But DriveFile class does not contain trash() method.

How to trash file?

Must use Google-Drive-SDK for java?

ChangUZ
  • 5,380
  • 10
  • 46
  • 64

1 Answers1

1

It looks like it was an OOPS. The code on Github disappeared with a commit msg "remove trashing activity". But at least it looks like it's coming soon. Meanwhile, I stick with this SO 22295903 solution. Messy, but at least something.

Community
  • 1
  • 1
seanpj
  • 6,735
  • 2
  • 33
  • 54