1. Home
  2. Javascript
  3. Delete cookie
#javascript#cookie

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

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