To delete a session cookie with JavaScript, set it with an expired date:
document.cookie = "yourCookieName=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
This works even for session cookies — it tells the browser to remove it immediately.