Method: enterprises.policies.delete
מחיקת מדיניות. ניתן לבצע את הפעולה הזו רק אם אין כרגע מכשירי יעד שמפנים למדיניות.
בקשת HTTP
DELETE https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
שם המדיניות בפורמט enterprises/{enterpriseId}/policies/{policyId} .
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה הוא אובייקט JSON ריק.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidmanagement
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-29 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-29 (שעון UTC)."],[[["Deletes a specified policy if it's not currently in use by any devices."],["Requires an HTTP DELETE request to a specific URL with enterprise and policy IDs."],["An empty request body is necessary, and a successful deletion results in an empty response body."],["Authorization necessitates the `https://www.googleapis.com/auth/androidmanagement` OAuth scope."]]],["This document details the process of deleting a policy via an HTTP `DELETE` request. The URL specifies the policy name using the format `enterprises/*/policies/*`. The request requires the `name` path parameter, a string representing the policy's ID. The request body must be empty. A successful deletion returns an empty JSON object, while authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. Deletion is only possible if no devices are referencing the policy.\n"]]