ISubscriptionServicePrincipalOperations.DeleteAsync Method

Definition

The Delete Service Principal operation deletes the service principalwith specified servicePrincipalId, if it exists in the subscription.

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> DeleteAsync (string servicePrincipalId, System.Threading.CancellationToken cancellationToken);
abstract member DeleteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function DeleteAsync (servicePrincipalId As String, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

servicePrincipalId
String

The Id of the service principal.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to