Method: properties.delete
HTTP リクエスト
DELETE https://www.googleapis.com/drive/v2/files/{fileId}/properties/{propertyKey}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
fileId |
string
ファイルの ID。
|
propertyKey |
string
プロパティのキー。
|
クエリ パラメータ
パラメータ |
visibility |
string
プロパティの公開設定。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.metadata
一部のスコープは制限されているため、アプリで使用するにはセキュリティ評価が必要です。詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-04 UTC。
[null,null,["最終更新日 2024-09-04 UTC。"],[[["Deletes a specified property from a file using its ID and property key."],["Requires authorization with specific OAuth scopes, some of which may require a security assessment."],["The request body should be empty, and a successful response will also be empty."],["Utilizes path parameters for file ID and property key, and an optional query parameter to define property visibility."],["Uses gRPC Transcoding for its URL structure."]]],["This document details how to delete a property from a file using the Google Drive API. The `DELETE` request uses a URL with `fileId` and `propertyKey` path parameters. An optional `visibility` query parameter is available. The request body must be empty, and a successful response also has an empty body. Authorization requires one of five OAuth scopes, with some scopes needing a security assessment. The core action is sending a `DELETE` request to remove a file's property.\n"]]