I need to delete files from Google Drive using com.google.android.gms.drive
. From what I've read here and across the web there is no support for file deletion in the "new API". Is that (still) correct? I mean the API isn't that new anymore ...
I also read about the "clear contents and forget"-strategy, but I'd like not to follow that approach.
Part 2 of the question: Given it's still impossible to delete files via the API mentioned above; is there any easy way to combine the REST API w/ the code I've already written? Something like
- get token from GoogleApiClient
- fire DELETE request w/ token and file id
- ???
- profit
edit: The new Google Play Services (version 7.0.0 / March 2015) finally features a trash()
method. See https://developer.android.com/reference/com/google/android/gms/drive/DriveResource.html for further details.
.
edit2: Apparently you cannot use trash()
on files from the app folder: Cannot trash App Folder or files inside the App Folder.
:((
edit3: As of May 28th, it's now possible to actually delete files.