delete Credential
Deletes an mDoc from storage.
This function deletes a credential and its corresponding device key from the storage. It is idempotent, meaning calls to this function for mDocs that do not exist will not return an error.
When the DC API feature is enabled, after successful deletion the remaining credentials are automatically re-registered with the Android Credential Manager to keep its list of available credentials up to date.
Activity Log
When activity log recording is enabled, a successful deletion logs an ActivityLogEntry containing a single ActivityLogCredentialEvent event.
If activity log recording fails, ActivityLogException.OperationFailedException is thrown.
Parameters
The ID of the credential to delete.
Throws
If the SDK API is called before the SDK is initialized.
If unable to delete MobileCredential by id.
If unable to delete the device key used by the id.
If activity log recording fails.