-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to delete data from NV storage? #97
Comments
Your app's data is deleted when your user removes the app. If you want to, you can remove the files using Ruby's File class methods on the persistent store. |
Well I have a "logout" functionality which once clicked should remove the data from storage. Can you point me to the code where I can find the file path details? |
In the README here you can see that persistence to the sandbox is done by filename. When your user logs out, you can adopt one of several strategies:
I recommend you remove the data using MotionModel's |
I wrote a straw man that I think would solve your problem: https://github.com/sxross/MotionModel/wiki/Strategy-for-MotionModel-Persistence |
Is there a way to delete data from NV storage after I have saved using
Model.serialize_to_file
Looked around inside the code and the docs, cant find this info anywhere?
The text was updated successfully, but these errors were encountered: