Deletes a cookie by name.

@param string $name Cookie name.
3345
private function deleteCookie($name)
    {
        $path = $this->getCookiePath();
        $jar = $this->client->getCookieJar();

        do {
            if (null !== $jar->get($name, $path)) {
                $jar->expire($name, $path);
            }

            $path = preg_replace('/.$/', '', $path);
        } while ($path);
    }
843904
public function delete($cookieName)
    {
        $cookie = $this->cookie->forget($cookieName);
        $this->cookie->queue($cookie);

        return true;
    }
98701
public static function remove($name)
    {
        $model = self::find()->where([self::getNameAttribute() => $name])->one();
    
        if ($model) {
            return (bool) $model->delete();
        }
    
        return false;
    }
1307569
public function removeCookie($name)
	{
		$cookie = new SetCookieHeader($name, '');
		$cookie->setExpires(1337);
		
		$this->addHeader($cookie);
		
		return $this;
	}
636045
public function remove($name)
    {
        if (isset($this->items[$name])) {
            $this->count--;
        }

        unset($this->items[$name]);
    }
481825
public function setName(string $name) : void
    {
        if ($name === "" || preg_match("/^([a-zA-Z0-9_])+$/", $name) !== 1) {
            throw new \InvalidArgumentException("Invalid cookie name. Use only a-zA-Z0-9 characters.");
        }

        $this->name = $name;
    }
701528
public function forget($name)
    {
        if (! $master = $this->find($name)) {
            return;
        }

        app(SupervisorRepository::class)->forget(
            $master->supervisors
        );

        $this->connection()->del('master:'.$name);

        $this->connection()->zrem('masters', $name);
    }
152914
final public function unsetCache($name) {
	
		if (is_array($this->cache) and isset($this->cache[$name])) {
		unset ($this->cache[$name]);
		}
	
	}
230174
public static function delete(string $name) : void
    {
        $results = static::$_session->get("_RESULTS");

        unset($results[$name]);

        static::$_session->set("_RESULTS", $results);
    }
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;
    }
536043
private function actionDelete($name)
    {
        $forms = $this->plugin->getForms();
        $forms->delete($name);
        /** @var TAdminUI $page */
        $page = Eresus_Kernel::app()->getPage();
        HTTP::redirect($page->url());
    }
820292
public function remove($name)
    {
        if(array_key_exists($name, $this->data))
        {
            unset($this->data[$name]);
            return true;
        }
        else
        {
            return false;
        }
    }
323697
public static function delete($name, $path = "/") {
		if (isset ( $_COOKIE [$name] )) {
			unset ( $_COOKIE [$name] );
		}
		\setcookie ( $name, "", \time () - 3600, $path );
	}
1236344
public static function delete($name, $path = '', $domain = '')
    {
        self::set($name, '', -3600, $path, $domain);
        unset($_COOKIE[Config::get('cookie_prefix') . $name]);
    }
1073391
public function delete( $name ) {
		unset( $this->cookie[ $name ] ); // Input var okay.
		return $this->set( $name, null, time() - 15 * 60 );
	}
352472
public function delete($name)
    {
        $this->func = function () use ($name) {
            setcookie($name, null, 0);
            return $name;
        };
        return new CookieFlush($this->func);
    }
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;
        }
    }