Removes a cookie by name. Note: To successfully remove a cookie, you must provide the same path and domain that were used when the cookie was set.
The name of the cookie to remove
Optional path and domain that match the cookie's original settings
// Remove a simple cookieremoveCookie('session');// Remove a cookie with specific path and domainremoveCookie('token', { path: '/app', domain: 'example.com' }); Copy
// Remove a simple cookieremoveCookie('session');// Remove a cookie with specific path and domainremoveCookie('token', { path: '/app', domain: 'example.com' });
Removes a cookie by name. Note: To successfully remove a cookie, you must provide the same path and domain that were used when the cookie was set.