你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SecretClient.PurgeDeletedSecret(String, CancellationToken) Method

Definition

Permanently deletes the specified secret.

public virtual Azure.Response PurgeDeletedSecret(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member PurgeDeletedSecret : string * System.Threading.CancellationToken -> Azure.Response
override this.PurgeDeletedSecret : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function PurgeDeletedSecret (name As String, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

name
String

The name of the secret.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Exceptions

name is an empty string.

name is null.

The server returned an error. See Message for details returned from the server.

Remarks

The purge deleted secret operation removes the secret permanently, without the possibility of recovery. This operation can only be enabled on a soft-delete enabled vault. This operation requires the secrets/purge permission.

Applies to