Destroy (expire) an existing cookie.

@param $name		(string) Name of cookie to destroy

@return FALSE	FAIL: no cookie by that name.
@return TRUE		PASS: cookie destroyed.
176298
public function drop_cookie($name) {
		$retval = FALSE;
		if(isset($_COOKIE[$name])) {
			setcookie($name, $_COOKIE[$name], time() -10000, '/');
			unset($_COOKIE[$name]);
			$retval = TRUE;
		}
		return($retval);
	}
638593
public function delete($name)
    {
        if ($this->has($name)) {
            $this->eventDispatcher->dispatch(Events::PRE_UPDATE, new SettingActionEvent($name, [], null));

            $setting = $this->get($name);
            $this->cache->delete($name);
            $response = $this->repo->remove($setting->getId());

            if ($setting->getType() == 'experiment') {
                $this->cache->delete($this->activeExperimentsSettingName);
                $this->getActiveExperimentProfilesCookie()->setClear(true);
            }

            $this->eventDispatcher->dispatch(Events::PRE_UPDATE, new SettingActionEvent($name, $response, $setting));

            return $response;
        }

        throw new \LogicException(sprintf('Setting with name %s doesn\'t exist.', $name));
    }
232916
public static function delete($name)
    {
        !isset(self::$init) && self::init();

        setcookie(
            $name, '', $_SERVER['REQUEST_TIME'] - 3600, self::$config['path'],
            self::$config['domain'], self::$config['secure']
        );

        unset($_COOKIE[$name]);
    }
706462
public static function DeleteNotSafeCookie ($name, array $options = []) {
		$path		= $options['path']		?? static::SET_COOKIE_DEFAULT;
		$domain		= $options['domain']	?? static::SET_COOKIE_DEFAULT;
		$secure		= $options['secure']	?? static::SET_COOKIE_DEFAULT;
		$httponly	= $options['httponly']	?? static::SET_COOKIE_DEFAULT;

		if (isset($_COOKIE[$name])) {
			unset($_COOKIE[$name]);
		}
		return setcookie($name, static::SET_COOKIE_DEFAULT, time() - 3600, $path, $domain, $secure, $httponly);
	}
660432
public function set($name, $value, $expire = 0)
    {
        $cookie_name = $this->getName($name);
        $cookie_expire = time() + ($expire ? $expire : $this->_expire);
        $cookie_value = $this->pack($value, $cookie_expire);
        $cookie_value = $this->authcode($cookie_value, 'ENCODE', $this->_securekey);

        if ($cookie_name && $cookie_value && $cookie_expire) {
            setcookie($cookie_name, $cookie_value, $cookie_expire, '/');
        }

    }
1137243
public static function delete($name)
    {
        unset($_COOKIE[$name]);
        return Base::getHttp()->setCookie($name, null, -86400, Cookie::$path, Cookie::$domain, Cookie::$secure, Cookie::$httpOnly);
    }
987915
public function deleteTable($name)
    {
        try {
            $this->_tableProxy->deleteTable($name);

            return true;
        } catch (\Exception $ex) {
            return false;
        }
    }
1043562
public function removeHeader(string $name): bool
    {
        $name = strtolower($name);
        if (!isset($this->headers[$name])) {
            return false;
        }
        unset($this->headers[$name]);

        return true;
    }
1111344
public function delete($name)
    {
        $command = $this->driver->factoryCommand("cookie/{$name}", WebDriver_Command::METHOD_DELETE);
        $this->driver->curl($command);
    }
1205003
public static function has($name)
    {
        !isset(self::$init) && self::init();

        return isset($_COOKIE[$name]);
    }
1058114
public function delete($name)
    {
        $this->stale = true;

        try {
            $this->model->where('name', '=', $name)->delete();
        } catch (Exception $e) {
            throw new WriteException($e);
        }
    }
990197
public static function set($name, $value, $expiry)
    {
        if (setcookie($name, $value, time() + $expiry, '/', null, null, true)) {
            return true;
        }
        
        return false;
    }
17994
public function DeleteCookie($name, $domain)
	{
		$sig =	$this->encode($this->applicationSecret."|".$name."|".$domain."|1");

		$qs = "key=" .urlencode($this->applicationKey)."&domain=".urlencode($domain)."&name=".urlencode($name)."&delete=1&sig=".$sig;

		return $this->isSuccessful($this->Get($this->getRootUrl(false) . "setcookie.ashx?" . $qs));
	}
1030810
public function remove(string $name) : bool
    {
        $key = $this->makeCacheKey($name);
        
        $this->cache->forget($key);
        
        unset($this->jobs[$name]);
    }
245363
public function delete($name)
    {
        $path = explode('.', $name);
        $key = array_shift($path);

        if ($path) {
            if ($this->checkCache($key) && $this->cache[$key]->delete($path)) {
                return $this->updateRecord($key);
            }
            return false;
        }

        unset($this->cache[$key]);

        return $this->deleteRecord($key);
    }
169022
public static function delete($name)
    {
        $keys = explode('.', $name);
        switch (count($keys)) {
            case 1:
                unset(self::$config[$keys[0]]);
                break;
            case 2:
                unset(self::$config[$keys[0]][$keys[1]]);
                break;
            case 3:
                unset(self::$config[$keys[0]][$keys[1]][$keys[2]]);
                break;
        }
    }
698864
public function set($name, $value, $expire = null): bool
    {
        $this->writeTimes++;

        if (is_null($expire)) {
            $expire = $this->options['expire'];
        }

        if (!empty($this->tag) && !$this->has($name)) {
            $first = true;
        }

        $key    = $this->getCacheKey($name);
        $expire = $this->getExpireTime($expire);

        $value = $this->serialize($value);

        if ($expire) {
            $this->handler->setex($key, $expire, $value);
        } else {
            $this->handler->set($key, $value);
        }

        isset($first) && $this->setTagItem($key);

        return true;
    }