// 모든 캐쉬 삭제
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (NSHTTPCookie *cookie in [storage cookies]) { [storage deleteCookie:cookie]; }
// URL 에 해당하는 캐쉬 삭제
NSHTTPCookieStorage* cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage]; NSArray *facebookCookies = [cookies cookiesForURL:[NSURL URLWithString:@"http://m.facebook.com"]]; for (NSHTTPCookie *cookie in facebookCookies) { [cookies deleteCookie:cookie]; }