public function deleteCookie(
        string $name,
        string $path = '/',
        string $domain = '',
        bool $isSecure = false,
        bool $isHttpOnly = true
    ) {
        // Remove the cookie from the response
        $this->setCookie(new Cookie($name, '', 0, $path, $domain, $isSecure, $isHttpOnly));
    }
public function deleteCookie(
        string $name,
        string $path = '/',
        string $domain = '',
        bool $isSecure = false,
        bool $isHttpOnly = true
    ) {
        // Remove the cookie from the response
        $this->setCookie(new Cookie($name, '', 0, $path, $domain, $isSecure, $isHttpOnly));
    }
public function deleteCookie ( string $ name , string $ path = '/' , string $ domain = '' , bool $ isSecure = false , bool $ isHttpOnly = true ) { // Remove the cookie from the response $ this -> setCookie ( new Cookie ( $ name , '' , 0 , $ path , $ domain , $ isSecure , $ isHttpOnly ) ) ; }
Deletes a cookie in the response header

@param string $name The name of the cookie to delete
@param string $path The path the cookie is valid on
@param string $domain The domain the cookie is valid on
@param bool $isSecure Whether or not the cookie was secure
@param bool $isHttpOnly Whether or not the cookie was HTTP-only
Deletes a cookie in the response header