Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to clear app data in react native programmatically

Tags:

react-native

There was a bug in my react native app, I handled it a new release, Unfortunately this issue has not been solved for the users who made the update, It has been solved for the users who recently downloaded the app only. I thought about clearing the app data, is there a way for this ?

like image 725
Mohamed amin Avatar asked Feb 19 '26 23:02

Mohamed amin


1 Answers

It depends on where you store the data.

If you use Async Storage, you need to use API of removeItem. Reference

If your data are stored at your app's folder or public folder, you can use react-native-fs to delete them.

like image 177
Joe199382 Avatar answered Feb 21 '26 15:02

Joe199382



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!