clear

suspend fun DeviceStorage.clear(): Boolean

Clears all key-value pairs from the storage. This function suspends until the result is available and returns the result directly or throws an exception if an error occurred.

Return

Boolean indicating whether the operation was successful.

Throws

If an error occurs during the operation.


suspend fun SecureStorage.clear(): Boolean

Clears all key-value pairs from secure storage. This suspending function handles the result directly and throws an exception if an error occurs.

Return

True if the operation was successful.

Throws

If an error occurs during the operation.