Static method to quickly delete a cookie

@param string $name
The cookie name

@return boolean
@throws CookieException
320285
public static function erase($name) {

        try {

            $class = get_called_class();

            $cookie = new $class($name);

            return $cookie->delete();

        } catch (CookieException $ce) {

            throw $ce;

        }

    }
323697
public static function delete($name, $path = "/") {
		if (isset ( $_COOKIE [$name] )) {
			unset ( $_COOKIE [$name] );
		}
		\setcookie ( $name, "", \time () - 3600, $path );
	}
536043
private function actionDelete($name)
    {
        $forms = $this->plugin->getForms();
        $forms->delete($name);
        /** @var TAdminUI $page */
        $page = Eresus_Kernel::app()->getPage();
        HTTP::redirect($page->url());
    }
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;
    }
440718
public function delete($name)
    {
        return setcookie($name, '', (time() - 86400), '/', $this->domain, $this->https, true);
    }
91307
public function removeCookie(string $name, bool $defer = false): self
    {
        if ($this->type == self::TYPE_REQUEST) {
            throw new HttpException('You cannot modify request cookies');
        }

        unset($this->cookies[$name]);
        if (!$defer) { // remove instantly
            $this->sendCookie($name, null, 0);
        }

        return $this;
    }
1293168
public static function remove($name)
    {
        if (Helpers\Data::table($name)->remove() && Helpers\Config::table($name)->remove())
        {
            return TRUE;
        }

        return FALSE;
    }
93514
public function delete(string $name, array $options = []): Cookies
	{
		$this->add($name, '', -3600, $options);

		return $this;
	}
1137243
public static function delete($name)
    {
        unset($_COOKIE[$name]);
        return Base::getHttp()->setCookie($name, null, -86400, Cookie::$path, Cookie::$domain, Cookie::$secure, Cookie::$httpOnly);
    }
32984
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);
    }
1128355
public function delete($name){

		$name = $this->_prependPrefix($name);

		$result = @$this->_Memcache->delete($name);

		return $result;
	}
967877
public function remove($name)
    {
        $this->instance->unlock();
        $result = $this->instance->remove($name);
        $this->instance->lock();
        return $result;
    }
707868
public function cookieExists($name)
    {
        $message = sprintf('Cookie "%s" is not set, but should be.', $name);
        $this->assert($this->session->getCookie($name) !== null, $message);
    }
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;
    }
676592
public function delete($name)
	{
		$templates = $this->getTemplates();
		$templates->delete($name, $this->plugin->name);
	}
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));
    }
1262329
static public function del($name)
    {
        if (isset(Loader::$callback['CacheDel'])) {
            return call_user_func_array(Loader::$callback['CacheDel'], func_get_args());
        }
        return self::check() && @unlink(self::$cachepath . $name);
    }