delete

actual open override fun delete(key: String): SecureLocalStorageResult

Deletes a key-value pair from the secure local storage.

Return

A SecureLocalStorageResult indicating the success or failure of the operation.

Parameters

key

The key of the item to be deleted from the storage.


actual open override fun delete(key: KeyValueStorageKeys): SecureLocalStorageResult

Deletes the value associated with the given key in the secure key-value storage.

Return

A SecureLocalStorageResult indicating the result of the delete operation.

Parameters

key

The key to delete, represented as a KeyValueStorageKeys enum value.

expect open override fun delete(key: String): SecureLocalStorageResult

Deletes the data associated with the provided key from the secure local storage.

Return

A result indicating the outcome of the delete operation. Returns a SecureLocalStorageResult.Success if the operation is successful. If the operation fails, a SecureLocalStorageResult.Failure containing the specific error is returned.

Parameters

key

The key associated with the data to be deleted.


expect open override fun delete(key: KeyValueStorageKeys): SecureLocalStorageResult

Deletes the value associated with the given key from the secure local storage.

Return

A SecureLocalStorageResult indicating the success or failure of the operation.

Parameters

key

The key whose associated value needs to be deleted.