I have an iOS app which stores data in NSUserDefults and many other data is set in cache as a result of web view load, social media signing etc.
I want to remove all the data from cache created by the app.
Is there any way to do this programmatically in iOS?
If you use
NSUserDefaults, you may try this.In terms of other cache files, I think you should keep all of them in a folder, so that they can be removed easily by removing the whole cache folder.