Reputation: 2186
Does anyone know, if google still plans to implement a delete functionality to their google drive android api?
To my astonishment, when implementing the last piece of some automatically scheduled 'cloud-backup' code using the 'drive android api' (using the latest Google Play service version, revision 22), I discovered that I was not able to delete files.
I found this hack here on stackoverflow, to mix in the 'Drive API Client Library for Java' for the delete part. I don't like this idea and would like to avoid this solution. Additionally someone from google posted in January 2014 that a delete/trash functionality was 'coming soon' and it's March 2015 now...
Does anyone have a update/solution on this?
EDIT 24 March 2015: The delete call is now natively supported by the Google Android Drive API. You just need to update your Play services lib to revision >= 23. Details: https://developers.google.com/drive/android/trash
Upvotes: 1
Views: 1119
Reputation: 1309
UPDATE:
Delete is supported in the Google Drive Android API as of Google Play services 7.5 using the DriveResource.delete() method.
We recommend using trash for user visible files rather than delete, to give users the opportunity to restore any accidentally trashed content. Delete is permanent, and recommended only for App Folder content, where trash is not available.
Delete isn't currently available in the Drive Android API, but we are currently testing the behavior internally. It won't make the next Play services release, but we hope to have it in the one after; unfortunately I can't give a timeframe. Until that time, the Drive Java Client Library is the best way to do delete on Android.
If you have any other feature requests or bugs, we'd appreciate if you could file them against our issue tracker: https://code.google.com/a/google.com/p/apps-api-issues/
That gives requests more visibility to our teams internally, and issues will be marked resolved when we release updates.
Upvotes: 2