Clearing the local storage will delete the local database in the SDK and remove all conversations and entries associated with those conversations from the device.
important: This feature requires version 1.5.1 or later of the Enhanced In-App Chat SDK.
This article applies to the following implementations:
| UI SDK | Core SDK |
|---|---|
| ✅ |
To delete the local storage call the destroyStorage method on the CoreClient object.
when(val result = CoreClient.clearStorage(context = applicationContext, clearAuthorization = true)) {
is Result.Error -> println("error, ${result.exception}")
else -> println("done")
}