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?
You can try using
[[NSURLCache sharedURLCache] removeAllCachedResponses];For more details, refer to link http://iphonedevsdk.com/forum/iphone-sdk-development/104198-programmatically-clearing-app-cache.html