1. Home
  2. Javascript
  3. Delete cookie

To delete a cookie pass the name and a date set in the past.

#javascript#cookie
document.cookie = "cookieName=; expires=Sun, 15 Jun 2019 00:00:00 UTC; path=/"
copy
Full Javascript cheatsheet