light-mode-image
Learn
Functions

deleteCredential

Delete a credential from storage.

Delete a credential from storage.

This function deletes a credential and its corresponding device key from the storage. It is idempotent, meaning calls to delete credentials that do not exist will not return an error.

Signature

function deleteCredential(
  credentialId: string
): Promise<Result<void, DeleteCredentialError>>

Parameters

Prop

Type

Returns

Promise<Result<void, DeleteCredentialError>>

Throws

InvalidParams if the provided arguments are missing or invalid.

MobileCredentialHolderErrorType.SdkNotInitialized if the SDK has not been initialized.

How would you rate this page?

On this page