Method: drives.delete
ユーザーが organizer
の共有ドライブを完全に削除します。共有ドライブにゴミ箱以外のアイテムを含めることはできません。
HTTP リクエスト
DELETE https://www.googleapis.com/drive/v2/drives/{driveId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
driveId |
string
共有ドライブの ID。
|
クエリ パラメータ
パラメータ |
useDomainAdminAccess |
boolean
ドメイン管理者としてリクエストを発行します。true に設定すると、リクエストしたユーザーが、共有ドライブが属するドメインの管理者である場合にアクセス権が付与されます。
|
allowItemDeletion |
boolean
共有ドライブ内のアイテムも削除する必要があるかどうか。このオプションは、useDomainAdminAccess も true に設定されている場合にのみサポートされます。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の 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 an empty shared drive for which the user is an organizer."],["Requires the `driveId` as a path parameter to identify the shared drive."],["Allows domain administrators to delete the shared drive and its contents using query parameters `useDomainAdminAccess` and `allowItemDeletion`."],["Uses a DELETE request with an empty body and returns an empty response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document outlines the process for permanently deleting a shared drive using a `DELETE` HTTP request. The request requires the shared drive's `driveId` as a path parameter. Optional query parameters, `useDomainAdminAccess` and `allowItemDeletion`, enable domain administrator access and the deletion of items within the drive, respectively. The request body must be empty. A successful deletion results in an empty response body. Authorization requires the `https://www.googleapis.com/auth/drive` OAuth scope.\n"]]