deleteCredential

suspend fun deleteCredential(credentialId: String)

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

credentialId

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")