s011208
s011208

Reputation: 405

How can I delete Google drive file on android app

I am a developer and currently working on google drive API on android.

I can query and create file/folder from my app using GoogleApiClient; however, I cannot delete the files from my app.

After I google it and I found out that the newest google drive Android API has not supported it yet.

So, are there other ways to delete files from android app?

Upvotes: 0

Views: 3668

Answers (1)

seanpj
seanpj

Reputation: 6755

The answer is here - SO 22295903, just combine with the old API. Or wait, DELETE has been promised soon.

In SO 22295903, there is a mention of reverting to the RESTful API. I have not done it myself, but I think you would take the resource ID, DriveId.getResourceId() and apply it to the trash or delete method. But it is only an untested idea, so don't shoot me.

Upvotes: 1

Related Questions