다음을 통해 공유


KeyVaultClientExtensions.DeleteCertificateAsync 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 = default);
static member DeleteCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.DeletedCertificateBundle>
<Extension()>
Public Function DeleteCertificateAsync (operations As IKeyVaultClient, vaultBaseUrl As String, certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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

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. This operation requires the certificates/delete permission.

Applies to