Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete application data on iOS simulator without uninstalling app?

I would like to delete application data like local storage without reinstalling the app.

I am using AsyncStorage in react-native, and have persisted some data. To quickly test storage, I would like to be able to clear AsyncStorage manually through the simulator, without implementing a logout/ clear AsyncStorage button in the app. (React-Native AsyncStorage.clear() is failing on IOS).

like image 583
Ben Butterworth Avatar asked Sep 19 '25 14:09

Ben Butterworth


1 Answers

Since there is no easy way to do it, I have added a developer menu in my app, with a button called clear AsyncStorage, which called AsyncStorage.clear().

like image 148
Ben Butterworth Avatar answered Sep 21 '25 03:09

Ben Butterworth