removeItem

fun removeItem(key: String, callback: (error: SecureStorageErrorMessage?, isSuccessful: Boolean) -> Unit)

Removes the key-value pair associated with a key from secure storage.

Parameters

key

The key to remove.

callback

A callback function that is called when the operation is complete. The first argument is an error object, if any, and the second argument is a boolean indicating whether the operation was successful.