CmdID / az / az policy / az policy enrollment
az policy enrollment delete
Delete a policy enrollment. Azure CLI reference
Delete the policy enrollment with the given name and scope.
1 example 2 options Its page in the Azure CLI reference
Examples
Delete a policy enrollment
az policy enrollment delete --name MyPolicyEnrollment --resource-group "myResourceGroup"Identify--nameThe name of the policy enrollment.--resource-groupName of resource group.Options
--name, -nThe name of the policy enrollment.--scopeThe fully qualified Azure Resource manager identifier of the resource.