Share via


KeyVaultClient.DeleteSecretAsync Method (String, String, CancellationToken)

 

Asynchronously deletes a secret from the specified vault.

Namespace:   Microsoft.Azure.KeyVault
Assembly:  Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)

Syntax

public Task<Secret> DeleteSecretAsync(
    string vault,
    string secretName,
    CancellationToken cancellationToken = null
)
public:
Task<Secret^>^ DeleteSecretAsync(
    String^ vault,
    String^ secretName,
    CancellationToken cancellationToken = null
)
member DeleteSecretAsync : 
        vault:string *
        secretName:string *
        cancellationToken:CancellationToken = null -> Task<Secret>
Public Function DeleteSecretAsync (
    vault As String,
    secretName As String,
    cancellationToken As CancellationToken
) As Task(Of Secret)

Parameters

  • vault
    Type: System.String

    The URL for the vault containing the secrets.

  • secretName
    Type: System.String

    The name of the secret in the given vault.

Return Value

Type: System.Threading.Tasks.Task<Secret>

The deleted secret.

See Also

KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace

Return to top