removeCookie()
Removes the specified cookie(s).
This function is valid in v2.3.0 to v2.24.3. This function has been downloaded 60 times.undefined
undefined
or null
is supplied that means all cookies should be removed.{"path":"/"}
domain
property. If a domain is specified, subdomains are always included. If you want to specify the URL path from under which the cookie will be removed you can specify it in the path
property. If you want to remove a secure cookie while on a secure site (https:
) you can set the secure
property to true
.name
is a string and matches the name of a cookie, that cookie's value will be returned as a string. If name
is a string but doesn't match the name of a cookie undefined
will be returned. If name
is of type RegExp
an object containing all of the cookies with names that match the specified regular expression will be returned. If name
is undefined
or null
an object containing all of the cookies will be returned. If an object is returned each key will represent the name of each removed cookie and each value will be the value of that removed cookie.This function directly requires the following functions which are included automatically:
getCookie()
has()
setCookie()