Method: permissions.delete
ファイルまたは共有ドライブから権限を削除します。
警告: 同じファイルに対して同時に実行する権限操作はサポートされていません。最後の更新のみが適用されます。
HTTP リクエスト
DELETE https://www.googleapis.com/drive/v2/files/{fileId}/permissions/{permissionId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
fileId |
string
ファイルまたは共有ドライブの ID。
|
permissionId |
string
権限の ID。
|
クエリ パラメータ
パラメータ |
supportsAllDrives |
boolean
リクエスト元のアプリケーションがマイドライブと共有ドライブの両方をサポートしているかどうかを指定します。
|
supportsTeamDrives (deprecated) |
boolean
非推奨: 代わりに supportsAllDrives を使用してください。
|
useDomainAdminAccess |
boolean
ドメイン管理者としてリクエストを発行します。true に設定すると、ファイル ID パラメータが共有ドライブを参照していて、リクエストしたユーザーが共有ドライブが属するドメインの管理者である場合に、リクエスト元のアクセスが許可されます。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
一部のスコープは制限されているため、アプリで使用するにはセキュリティ評価が必要です。詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-04 UTC。
[null,null,["最終更新日 2024-09-04 UTC。"],[[["Permanently deletes a specific permission from a file or shared drive, with only the latest update being applied in case of concurrent operations."],["Uses an HTTP DELETE request to the Google Drive API, requiring the file ID and permission ID as path parameters."],["Allows specifying whether the application supports My Drives and shared drives, or if the request should be made as a domain administrator, using query parameters."],["Needs authorization with one of the specified OAuth scopes related to Google Docs or Drive access."]]],["This document outlines the process of deleting a permission from a file or shared drive using a `DELETE` HTTP request to a specific URL. The request requires `fileId` and `permissionId` as path parameters. Optional query parameters include `supportsAllDrives`, `supportsTeamDrives` (deprecated), and `useDomainAdminAccess`. The request body must be empty, and a successful response is also empty. Authorization requires one of three OAuth scopes listed. Concurrent permissions updates on the same file are not supported.\n"]]