---
schema_version: "1"
id: a50114ed87cad9907c9350f61dc8c617ed3fbbc3ab7b662f479ae1a9f4b99f1c
title: Clear Local Storage
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/messaging-in-app/guides/ios-clear-local-storage.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-in-app/guide/ios-clear-local-storage.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cffaf710a609a3b8672576e7d3fae963acc0339d308b9736def7f517396ce6e3
products:
  - Enhanced In-App Chat
  - Service Cloud Developer Content
---
# Clear Local Storage

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`](https://salesforce-async-messaging.github.io/messaging-in-app-ios/documentation/smiclientcore/coreclient) object.

```
coreClient.destoryStorage(andAuthorization: true) {  error in
	If error != nil {
// TO DO: Handle error
return
	}
}
```
