public function delete(string $name)
    {
        foreach ($this->scheduled as $index => $cookie) {
            if ($cookie->getName() == $name) {
                unset($this->scheduled[$index]);
            }
        }

        $this->scheduled[] = new Cookie($name, null, -86400);
    }
public function delete(string $name)
    {
        foreach ($this->scheduled as $index => $cookie) {
            if ($cookie->getName() == $name) {
                unset($this->scheduled[$index]);
            }
        }

        $this->scheduled[] = new Cookie($name, null, -86400);
    }
public function delete ( string $ name ) { foreach ( $ this -> scheduled as $ index => $ cookie ) { if ( $ cookie -> getName ( ) == $ name ) { unset ( $ this -> scheduled [ $ index ] ) ; } } $ this -> scheduled [ ] = new Cookie ( $ name , null , - 86400 ) ; }
Schedule cookie removal.

@param string $name
Schedule cookie removal .