Method: enterprises.policies.delete
Usuwa zasadę. Ta operacja jest dozwolona tylko wtedy, gdy żadne urządzenia nie odwołują się do tej zasady.
Żądanie HTTP
DELETE https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Nazwa zasady w formacie enterprises/{enterpriseId}/policies/{policyId} .
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi to pusty obiekt JSON.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidmanagement
Więcej informacji znajdziesz w OAuth 2.0 Overview.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-29 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]