I need to delete simulator cookies whenever needed. I need to delete the Facebook cookie from the iOS simulator.

I tried the following code, and it does not works.

- (IBAction)Logout:(id)sender {

     NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
     for (NSHTTPCookie *each in [[cookieStorage cookiesForURL:@"Facebook.com"] copy ]) {
         [cookieStorage deleteCookie:each];
possible duplicate of Clear iphone simulator cookiespeko
Do you delete the Facebook cookies , I have the same problem .Nada Gamal