deleteByUserId

suspend fun deleteByUserId(userId: String)

Deletes a user key by user ID.

Removes all user key metadata for the specified user ID from storage. If no key exists for the user ID, the operation completes successfully without error (idempotent operation).

This method only removes the metadata from storage. The actual private key material in the Android KeyStore must be deleted separately.

Parameters

userId

The unique identifier of the user whose key to delete