1

我正在尝试删除或删除共享文件,就像这样

删除

 service.files().delete(id).execute();

垃圾

 service.files().trash(id).execute();

但是在删除的情况下不显示任何错误但文件没有被删除,文件仍然在我的驱动器上

在垃圾箱中出现此错误

     {
        "code" : 403,
        "errors" : [ {
    "domain" : "global",
    "location" : "Authorization",
    "locationType" : "header",
    "message" : "The authenticated user does not have the required access to the file 1-Vt5gM2SLknnJs3nRFjWUly--nzfX1IWah-PxhLbNxo",
    "reason" : "userAccess"
  } ],
  "message" : "The authenticated user does not have the required access to the file 1-Vt5gM2SLknnJs3nRFjWUly--nzfX1IWah-PxhLbNxo"
}

那么如何删除、删除或取消订阅共享文件?

提前谢谢

4

0 回答 0