Function removeCookie

  • Delete a cookie by name.

    Usage:

    const ret = removeCookie('test');
    console.log(ret);

    Output:

    true
    

    Parameters

    • name: string

      The name of the cookie to delete.

    Returns boolean

    true if the cookie was deleted successfully, false otherwise.