Removes a cookie from the response.

@param string $name
545596
public function removeCookie(string $name)
    {
        if (isset($this->cookies[$name])) {
            unset($this->cookies[$name]);
            $this->setHeadersFromCookies();
        }
    }
753220
public function offsetUnset($name)
    {
        if (!isset($this->_hashes[$name])) {
            return;
        }
        foreach ($this->_hashes[$name] as $hash) {
            unset($this->_data[$hash]);
            unset($this->_names[$hash]);
        }
        unset($this->_hashes[$name]);
    }
638872
public function remove($name)
    {
        $names = (array)$name;

        foreach ($names as $name) {
            if (Arr::key($name, $this->_assets)) {
                unset($this->_assets[$name]);
            }
        }
    }
464470
public function removeCookie($name, $path = '/', $domain = null)
    {
        //Ensure we have a valid path
        if (empty($path)) {
            $path = '/';
        }

        //Force to string to allow passing objects
        $path = (string) $path;

        unset($this->_cookies[$domain][$path][$name]);

        if (empty($this->_cookies[$domain][$path]))
        {
            unset($this->_cookies[$domain][$path]);

            if (empty($this->_cookies[$domain])) {
                unset($this->_cookies[$domain]);
            }
        }
    }
545016
public function delete($name)
    {
        if ( ! $this->exists($name)) {
            return true;
        }

        unset($this->cookies[$name]);

        return $this->set($name, null, -1);
    }
820292
public function remove($name)
    {
        if(array_key_exists($name, $this->data))
        {
            unset($this->data[$name]);
            return true;
        }
        else
        {
            return false;
        }
    }
156082
public function unsetPersistentState($name) {
		
		$name = static::getCookiePrefix() . ucfirst($name);
		
		unset($this->persistentState[$name]);
		
		if (isset($_COOKIE[$name])) {
			unset($_COOKIE[$name]);
			setcookie($name, '', -1, '/');
		}
		
	}
1192654
public function delete($name) {

        if ( array_key_exists($name, $this->data) ) {
            unset($this->data[$name]);
            return true;
        }

        return false;

    }
1073391
public function delete( $name ) {
		unset( $this->cookie[ $name ] ); // Input var okay.
		return $this->set( $name, null, time() - 15 * 60 );
	}
356048
public function delete($name)
    {
        try {
            $result = $this->getStorage()->delete($this->cookiePrefix . $name);
            $this->cookieBag->removeKey($this->cookiePrefix . $name);
        } catch (\Exception $e) {
            throw new CookieException($e->getMessage());
        }

        return $result;
    }
762354
public function removeHeader(string $name)
    {
        if (array_key_exists($name, $this->headers)) {
            unset($this->headers[$name]);
        }

        return $this;
    }
871279
public function removeResource ($name)
	{
		
		if (isset ($this->resources[$name]))
		{
			
			unset ($this->resources[$name]);
			
			if (isset ($this->$name))
			{
				unset ($this->$name);
			}
				
		}
		
	}
19209
public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
1160934
public function unsetCookie($name, $path = '/')
    {
        setcookie($name, '', time() - 86400, '/', '', 0);
        if (isset($_COOKIE) && isset($_COOKIE[$name])) {
            unset($_COOKIE[$name]);
        }
        if (isset($this->request->cookie[$name])) {
            unset($this->request->cookie[$name]);
        }
    }
230174
public static function delete(string $name) : void
    {
        $results = static::$_session->get("_RESULTS");

        unset($results[$name]);

        static::$_session->set("_RESULTS", $results);
    }
452331
public function destroy($name)
    {
        if (!array_key_exists($name, $this->_storage)) {
            trigger_error(
                "Attempted to destroy non-existent variable $name",
                E_USER_ERROR
            );
            return;
        }
        unset($this->_storage[$name]);
    }
1085272
public function clear($name)
    {
        if (!in_array($name, $this->clearedCookies, true)) {
            $this->clearedCookies[] = $name;
            foreach ($this->cookies as $index => $value) {
                if ($value->getName() === $name) {
                    unset($this->cookies[$index]);
                }
            }
            $this->cookies = array_values($this->cookies);
        }
    }