removeWithResult

suspend fun DeviceStorage.removeWithResult(key: String): <Error class: unknown class><Boolean>

Removes the key-value pair associated with a key. This function uses a CompletableDeferred to handle the asynchronous callback and returns a Result object.

Return

A Result object containing the result of the operation.

Parameters

key

The key to remove.


suspend fun SecureStorage.removeWithResult(key: String): <Error class: unknown class><Boolean>

Removes the key-value pair associated with a key from secure storage using a CompletableDeferred and returns a Result.

Return

A Result object containing the result of the operation.

Parameters

key

The key to remove.