Skip to content

Latest commit

 

History

History
115 lines (80 loc) · 4.06 KB

mobiledevicemanagementpolicies-delete.md

File metadata and controls

115 lines (80 loc) · 4.06 KB
title description author ms.localizationpriority ms.subservice doc_type
Delete mobileDeviceManagementPolicy
Delete a mobile device management policy.
michaelrm97
medium
entra-directory-management
apiPageType

Delete mobileDeviceManagementPolicy

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Delete a mobilityManagementPolicy object.

Note

This operation is only supported when the policy is no longer valid; that is, when the isValid property is false, which indicates that the service principal associated with the application for this policy has been deleted.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

HTTP request

DELETE /policies/mobileDeviceManagementPolicies/{id}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It doesn't return anything in the response body.

Examples

Request

DELETE https://graph.microsoft.com/beta/policies/mobileDeviceManagementPolicies/ab90bacf-55a3-4a3e-839a-aa4b74e4f020

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

HTTP/1.1 204 No Content