res.clearCookie()

Clears cookie (name) in the response.

Usage

  1. res.clearCookie(name [,options]);

Details

The path option defaults to “/“.

Example

  1. res.cookie('name', 'tobi', { path: '/admin' });
  2. res.clearCookie('name', { path: '/admin' });