I am on an external site, and I am trying to delete the cookie via javascript.
I did the following in the console:
function deleteAllCookies() {
For me the issue was that I was setting the domain field which is required only if you overrode it when setting the cookie. Therefore, the following should do the trick:
domain
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"