---
name: "clearStorageSync"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "2.0.1" }
  - { name: "@ray-js/ray", version: "0.3.23" }
platform:
  - "iOS"
  - "Android"
---

## clearStorageSync

> [VERSION] BaseKit >= 2.0.1 | @ray-js/ray >= 0.3.23

> [PLATFORM] iOS, Android

### Description

Clear local data cache

### Parameters

None


### Examples

#### Demo

```tsx
import { clearStorage } from '@ray-js/ray'

// Clear local data cache
clearStorage({
  success: () => console.log("Local cache cleared"),
  fail: error => console.error(error),
});
```
