src/Http/Formatting/ResponseFormatter.php
public function deleteCookie(
        IHttpResponseMessage $response,
        string $name,
        ?string $path = null,
        ?string $domain = null,
        bool $isSecure = false,
        bool $isHttpOnly = true,
        ?string $sameSite = null
    ): void {
        $this->headerFormatter->deleteCookie(
            $response->getHeaders(),
            $name,
            $path,
            $domain,
            $isSecure,
            $isHttpOnly,
            $sameSite
        );
    }
public function deleteCookie(
        IHttpResponseMessage $response,
        string $name,
        ?string $path = null,
        ?string $domain = null,
        bool $isSecure = false,
        bool $isHttpOnly = true,
        ?string $sameSite = null
    ): void {
        $this->headerFormatter->deleteCookie(
            $response->getHeaders(),
            $name,
            $path,
            $domain,
            $isSecure,
            $isHttpOnly,
            $sameSite
        );
    }
public function deleteCookie ( IHttpResponseMessage $ response , string $ name , ? string $ path = null , ? string $ domain = null , bool $ isSecure = false , bool $ isHttpOnly = true , ? string $ sameSite = null ) : void { $ this -> headerFormatter -> deleteCookie ( $ response -> getHeaders ( ) , $ name , $ path , $ domain , $ isSecure , $ isHttpOnly , $ sameSite ) ; }
Deletes a cookie from headers

@param IHttpResponseMessage $response The response to format
@param string $name The name of the cookie to delete
@param string|null $path The path to the cookie to delete if set, otherwise null
@param string|null $domain The domain of the cookie to delete if set, otherwise null
@param bool $isSecure Whether or not the cookie to be deleted was HTTPS
@param bool $isHttpOnly Whether or not the cookie to be deleted was HTTP-only
@param string|null $sameSite The same-site setting to use if set, otherwise null
Deletes a cookie from headers