As I write in comment I guess the problem related to deleting some system files that not directly own by your app and should not be deleted.
for example how looks Cache
folder in basic app with one UIWebView
To avoid strange errors is better to create dedicated folder inside Library/Caches
and delete content inside respected to your needs