Policy Definitions - Delete At Management Group

Deletes a policy definition in a management group.
This operation deletes the policy definition in the given management group with the given name.

DELETE https://management.azure.com/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}?api-version=2018-05-01

URI Parameters

Name In Required Type Description
managementGroupId
path True
  • string

The ID of the management group.

policyDefinitionName
path True
  • string

The name of the policy definition to delete.

api-version
query True
  • string

The API version to use for the operation.

Responses

Name Type Description
200 OK

OK

204 No Content

No Content

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Delete a policy definition at management group level

Sample Request

DELETE https://management.azure.com/providers/Microsoft.Management/managementgroups/MyManagementGroup/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming?api-version=2018-05-01

Sample Response