teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

補足情報追加

2021/06/12 07:12

投稿

stcamp
stcamp

スコア13

title CHANGED
File without changes
body CHANGED
@@ -41,4 +41,12 @@
41
41
 
42
42
  - バックアップしてあった過去のバージョン(数種類)のスクリプトに差し替えて実行
43
43
  - 共有ユーザーのドライブのゴミ箱を手動で削除
44
- - Drive API v2 の Try this API でも同様の結果
44
+ - Drive API v2 の Try this API でも同様の結果
45
+
46
+ ### 補足情報
47
+
48
+ > Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive **the user must be an organizer on the parent**. If the target is a folder, all descendants owned by the user are also deleted.
49
+ [Drive API v3 Files:delete より](https://developers.google.com/drive/api/v3/reference/files/delete)
50
+
51
+ Drive API v3ではオーナー権限が必要条件に変更されています。
52
+ v2のdeleteを指定しているにも関わらず、v3のdeleteが実行されているという印象です。

1

試したことを追加

2021/06/12 07:12

投稿

stcamp
stcamp

スコア13

title CHANGED
File without changes
body CHANGED
@@ -40,4 +40,5 @@
40
40
  ### 試したこと
41
41
 
42
42
  - バックアップしてあった過去のバージョン(数種類)のスクリプトに差し替えて実行
43
- - 共有ユーザーのドライブのゴミ箱を手動で削除
43
+ - 共有ユーザーのドライブのゴミ箱を手動で削除
44
+ - Drive API v2 の Try this API でも同様の結果