const cookieName = 'a'; const cookieValue = 1; const cookieMaxAge = 0; const date = new Date(); date.setDate(date.getDate() + (24 * 60 * 60 * 1000)); document.cookie = `${cookieName}=${cookieValue};expires=${date.toUTCString()};max-age=${cookieMaxAge}`; max-age=0 으로 쿠키 만료 및 삭제 시킬수 있다 https://github.com/losbanos/node-zero/commit/ec5e8ce610216cc6082c911d455416d1cb4c676a