Method: properties.delete
HTTP-Anfrage
DELETE https://www.googleapis.com/drive/v2/files/{fileId}/properties/{propertyKey}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
fileId |
string
Die ID der Datei.
|
propertyKey |
string
Der Schlüssel der Property.
|
Abfrageparameter
Parameter |
visibility |
string
Die Sichtbarkeit der Property.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich ist, ist der Antworttext leer.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
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
Einige Bereiche sind eingeschränkt und erfordern eine Sicherheitsprüfung, damit Ihre App sie verwenden kann. Weitere Informationen finden Sie im Leitfaden zur Autorisierung.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-04 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]