Delete a cookie

@param string $name

@return bool
545016
public function delete($name)
    {
        if ( ! $this->exists($name)) {
            return true;
        }

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

        return $this->set($name, null, -1);
    }
1043562
public function removeHeader(string $name): bool
    {
        $name = strtolower($name);
        if (!isset($this->headers[$name])) {
            return false;
        }
        unset($this->headers[$name]);

        return true;
    }
210695
public function has($name)
    {
        if (in_array($name, $this->responseCookies->getClearedCookies(), true)) {
            return false;
        }

        return $this->request->cookies->has($name) || $this->responseCookies->hasCookie($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);
	}
1124380
public function actionDelete($name)
    {
        $item = $this->getItem($name);
        \Yii::$app->authManager->remove($item);
        return $this->redirect(['index']);
    }
1250163
public function delete($name, $path = null, $domain = null, $secure = false, $httpOnly = true)
    {
        $this->response->deleteCookie($name, $path, $domain, $secure, $httpOnly);

        return $this;
    }
968612
public function getCookie($name)
    {

        $filter = $default = '';

        $cookie = $this->getVar($name, $filter, $default, "cookies");

        //@TODO cookie before return
        return empty($cookie) ? false : $cookie;
    }
657608
public function delete()
    {
        return setcookie(
            $this->name,
            null,
            1,
            $this->path,
            $this->domain,
            $this->secure,
            $this->httpOnly
        );
    }
125802
public function removeCookieItem($key)
    {
        if (isset($this->cookie[$key])) {
            unset($this->cookie[$key]);
            return true;
        } else {
            return false;
        }
    }
614186
public function remove($name)
    {
        $this->_validate();
        if (!$this->isLocked()) {
            if (!$this->get($name)) {
                return true;
            }
            unset($_SESSION[$this->publicStorage]['store'][$this->_namespaceName][$name]);
            return true;
        }
        return false;
    }
458310
public function deleteCookie($name = null)
    {
        if (isset($name)) {

            if (isset($this->request['cookie'][$name])) {
                unset($this->request['cookie'][$name]);
                return setcookie($name, '', GC_TIME - 3600, '/');
            }

            return false;
        }

        foreach (array_keys($this->request['cookie']) as $key) {
            $this->deleteCookie($key);
        }

        return true;
    }
228073
public function delete($name)
    {
        $this->connect();
        $key = $this->getCacheKey($name);

        return self::$instance->delete($key);
    }
1253049
public function remove($name)
    {
        $name = $this->getFullName($name);

        // Delete existing response cookie
        if (isset($this->responseCookies[$name])) {
            unset($this->responseCookies[$name]);
        }

        // Set response cookie if request cookie was set
        if (null !== $this->get($name)) {
            // Note: timestamp '1' = '1970-01-01 00:00:00 UTC'
            $this->set($name, 'deleted', '1');
        }

        return $this;
    }
304215
public function removeHeader(string $name)
    {
        parent::removeHeader($name);

        if (\stripos($name, "cookie") === 0) {
            $this->cookies = [];
        }
    }
751829
public static function delete(String $name = NULL) : Bool
    {
        $name  = self::$settings['name']  ?? $name;
        $input = self::$settings['input'] ?? false;

        self::$settings = [];

        switch( $input )
        {
            case 'post'    : unset($_POST[$name]);    break;
            case 'get'     : unset($_GET[$name]);     break;
            case 'env'     : unset($_ENV[$name]);     break;
            case 'server'  : unset($_SERVER[$name]);  break;
            case 'request' : unset($_REQUEST[$name]); break;
        }

        return true;
    }
739584
public function delete($name, $path = '/', $domain = '')
    {
        if (empty($domain)) {
            $GLOBALS['__$response']->cookie($name, null, time() - 3600, '/');
        } else {
            $domain = '.' . $_SERVER['HTTP_HOST'];
            $GLOBALS['__$response']->cookie($name, null, time() - 3600, '/', $domain);
        }

        unset($_COOKIE[$name]);
    }
741409
public function decrypt($name)
    {
        $name = isset($this->options[ 'prefix' ])
            ? $this->options[ 'prefix' ] . $name
            : $name;

        if ($value = input()->cookie($name)) {
            return $this->crypt->decrypt($value);
        }

        return false;
    }