KeyVaultClientExtensions.DeleteCertificateAsync(IKeyVaultClient, String, String, CancellationToken) Method

Definition

Deletes a certificate from a specified key vault.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.DeletedCertificateBundle> DeleteCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string certificateName, System.Threading.CancellationToken cancellationToken = null);
static member DeleteCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.DeletedCertificateBundle>

Parameters

operations
IKeyVaultClient

The operations group for this extension method.

vaultBaseUrl
String

The vault name, for example https://myvault.vault.azure.net.

certificateName
String

The name of the certificate.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<DeletedCertificateBundle>

Remarks

Deletes all versions of a certificate object along with its associated

policy. Delete certificate cannot be used to remove individual versions of

a certificate object.

Applies to