delete

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

This function removes the key-value pair from the storage if it exists. If the deletion is successful, it returns a success result. Otherwise, it returns a failure result containing information about the error.

Return

A SecureLocalStorageResult instance indicating the outcome of the operation. It will be of type Success if the key was successfully deleted, or Failure if an error occurred (e.g., the key was not found).

Parameters

key

The key of type KeyValueStorageKeys representing the identifier to be removed from secure local storage.


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

This method removes the value stored under the provided key. If the key does not exist, the operation will return a failure result.

Return

A SecureLocalStorageResult object indicating the success or failure of the delete operation.

Parameters

key

The key whose associated data should be deleted.