Method: enterprises.policies.delete
नीति मिटाता है. इस कार्रवाई की अनुमति सिर्फ़ तब होती है, जब फ़िलहाल कोई भी डिवाइस नीति का रेफ़रंस न दे रहा हो.
एचटीटीपी अनुरोध
DELETE https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
name |
string
enterprises/{enterpriseId}/policies/{policyId} फ़ॉर्मैट में नीति का नाम.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, तो रिस्पॉन्स बॉडी में खाली JSON ऑब्जेक्ट होता है.
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidmanagement
ज़्यादा जानकारी के लिए, OAuth 2.0 Overview देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]