 <p>Just find out all cookies start with "Cookie" and then do the same as that answer one by one.</p> <pre><code>document.cookie.split('; ') .map(function (x) { return x.split('=', 1)[0]; }) .filter(function (x) { return x.substring(0, 6) === 'Cookie'; }) .forEach(function (name){ // set the domain var domain = ".jsfiddle.net"; // get a date in the past var expireDate = new Date(-1).toUTCString(); // clear the cookie and force it to expire document.cookie = name + "=; domain=" + domain + "; path=/; expires=" + expireDate; }); </code></pre>