このように、共有ファイルを削除またはゴミ箱に入れようとしています
消去
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"
}
では、どうすれば共有ファイルを削除、ゴミ箱に入れる、または登録解除できますか?
thx事前に