Method: properties.delete
בקשת HTTP
DELETE https://www.googleapis.com/drive/v2/files/{fileId}/properties/{propertyKey}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
fileId |
string
מזהה הקובץ.
|
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
חלק מההיקפים מוגבלים ומחייבים בדיקת אבטחה כדי שהאפליקציה תוכל להשתמש בהם. למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-03 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-03 (שעון 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"]]