Method: enterprises.policies.delete
ลบนโยบาย การดำเนินการนี้ทำได้ในกรณีที่ไม่มีอุปกรณ์ใดอ้างอิงนโยบายดังกล่าวอยู่เท่านั้น
คำขอ HTTP
DELETE https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ชื่อนโยบายในรูปแบบ enterprises/{enterpriseId}/policies/{policyId}
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะเป็นออบเจ็กต์ JSON ว่าง
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidmanagement
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]