IPolicySetDefinitionsOperations.DeleteAtManagementGroupWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) IPolicySetDefinitionsOperations.DeleteAtManagementGroupWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Deletes a policy set definition.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteAtManagementGroupWithHttpMessagesAsync (string policySetDefinitionName, string managementGroupId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteAtManagementGroupWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>

Parameters

policySetDefinitionName
String String

The name of the policy set definition to delete.

managementGroupId
String String

The ID of the management group.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.AzureOperationResponse>

Exceptions

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException Microsoft.Rest.ValidationException

Thrown when a required parameter is null

Remarks

This operation deletes the policy set definition in the given

management group with the given name.

Applies to