javascript delete specific cookie code example
Example 1: javascript delete cookie
function deleteCookie(name) {
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
Example 2: delete cookies by domain javascript
document.cookie = 'my_cookie=; path=/; domain=.example.com; expires=' + new Date(0).toUTCString();
Example 3: js delete cookie by name
var removing = browser.cookies.remove(
details // object
)