Closed NAVI-91 closed 2 years ago
function deleteAllCookies() {
const cookies = document.cookie.split(";");
cookies.forEach(cookie => {
const eqPos = cookie.indexOf("=");
const name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
document.cookie = name + "=;expires=-1";
});
}
How can remove all cookies?