delete Credential
Deletes a pending credential from storage.
Before deleting, checks whether the contract exists on-chain by calling sync. If the contract is already deployed, the deletion is rejected because the wallet exists on-chain and the credential has already been removed by sync.
Parameters
credential Id
The ID of the credential to delete
Throws
if the credential does not exist
if the credential is already deployed on-chain
if deletion fails
Example:
manager.deleteCredential(credentialId = "abc123")Content copied to clipboard