I do not think that you can delete everything in Javascript, but I will answer another part of your question about the possibility of doing this in WinRT. For standard cookies you can:
public void clearCookiesForUri(String uri) { Windows.Web.Http.Filters.HttpBaseProtocolFilter baseFilter = new Windows.Web.Http.Filters.HttpBaseProtocolFilter(); HttpCookieCollection cookieCollection = baseFilter.CookieManager.GetCookies(new Uri(uri)); Debug.WriteLine("Deleting cookies for " + uri); foreach (HttpCookie cookie in cookieCollection) { Debug.WriteLine(cookie.Name + ": " + cookie.Value); baseFilter.CookieManager.DeleteCookie(cookie); } }
And the only way I found deleting HttpOnly files is to clear all WebView data through WebView.ClearTemporaryWebDataAsync() . This is pretty messy, but it works.
source share