krishna kanhaiya

krishna kanhaiya

  • NA
  • 216
  • 2.4k

Google Drive API Delete File

Feb 17 2017 11:25 AM
Hi , I am using Google Drive API and i want to delete files of "Share with me" folder.this is my code ////////////////////////////////
public void DeleteFile(string fileID, DriveService service)
{
var fileId = fileID; //"0BwwA4oUTeiV1UVNwOHItT0xfa2M";
var request = service.Files.Delete(fileId);
var file = request.Execute();
}
//////////////////////////////
 this code is give a error 403 Permission error How we solve .... Thanks in Advance please don't give a link ..Thanku 

Answers (3)