Clears all items in local storage if data synchronization is not working.
This method can be called no earlier than after the getOfflineStorageCount
method's onSuccess
callback is invoked during the first application start. Otherwise, it fails with
onFailure
callback invoked.
Name | Description | Type | Use |
---|---|---|---|
onSuccess | A callback function, called after items are successfully removed. | function |
required |
onFailure | A callback function, called when the client's database operation fails. Returns an error code, as defined in the Constants table in the Client Store article, and an error message. | function |
required |