DeleteSecret

Function DeleteSecret 

Source
pub fn DeleteSecret(
    ExtensionIdentifier: String,
    Key: String,
) -> ActionEffect<Arc<dyn SecretProvider>, CommonError, ()>
Expand description

Creates an effect that, when executed, will delete a secret from the host’s secure storage (e.g., OS keychain).

It uses the SecretProvider capability from the environment to perform the actual deletion.

§Parameters

  • ExtensionIdentifier: The ID of the extension that owns the secret.
  • Key: The key of the secret to delete.

§Returns

An ActionEffect that resolves to () on success.