Method: files.emptyTrash
ユーザーのゴミ箱にあるすべてのファイルを完全に削除します。
HTTP リクエスト
DELETE https://www.googleapis.com/drive/v3/files/trash
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ |
enforceSingleParent (deprecated) |
boolean
非推奨: アイテムが共有ドライブ内に存在せず、最後の親を削除しても、アイテム自体は削除されていない場合、そのアイテムはオーナーのルート下に配置されます。
|
driveId |
string
設定すると、指定した共有ドライブのゴミ箱を空にします。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/drive
一部のスコープは制限されているため、アプリで使用するにはセキュリティ評価が必要です。詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-04 UTC。
[null,null,["最終更新日 2024-09-04 UTC。"],[[["Permanently deletes all of the user's trashed files or those within a specified shared drive."],["Uses an HTTP DELETE request to the URL `https://www.googleapis.com/drive/v3/files/trash`."],["Request body should be empty, and a successful response will also be empty."],["Requires authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document outlines the process for permanently deleting a user's trashed files via an HTTP `DELETE` request to `https://www.googleapis.com/drive/v3/files/trash`. The request body must be empty. Optional query parameters include `driveId` to specify a shared drive. A successful request yields an empty response. Authorization requires the `https://www.googleapis.com/auth/drive` OAuth scope. The parameter `enforceSingleParent` has been deprecated.\n"]]