Q:

Android WebView remove cookies from specific domain

How to remove cookies from WebView on specific domain?
Like this method when I want to remove all cookies.
android.webkit.CookieManager.getInstance().removeAllCookie();

To be specific, I want to delete all .facebook.com cookies:

A:

I figured it how, I ended up manually clearing each cookies for each host key.
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "locale=");
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "datr=");
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "s=");
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "csm=");
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "fr=");
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "lu=");
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "c_user=");
android.webkit.CookieManager.getInstance().setCookie(".facebook.com", "xs=");

