清空所有或者指定的cookie
@param  string $key 键名
@return self
770614
public function clearCookie($key = null)
    {
        if ($key) {
            setcookie($key, '', time() - 3600);
        } else {
            foreach ($_COOKIE as $key => $val) {
                $this->clearCookie($key);
            }
        }
        return $this;
    }
898271
public function remove($key)
    {
        if (false === $this->willRemove($key)) {
            $this->clearChange($key);
            if (true === $this->hasOriginal($key)) {
                $this->remove[] = $key;
            }
        }
        return $this;
    }
1094579
public function remove( $key )
	{
		$uri	= $this->getUriForKey( $key );
		unset( $this->data[$key] );
		return @unlink( $uri );
	}
1228869
public function forget($key)
	{
		if (array_key_exists($key, $this->vars))
		{
			unset($this->vars[$key]);
		}

		return $this;
	}
211717
public function removeKey($key)
    {
        if (is_array($key)) {
            foreach ($key as $k) {
                $this->removeKey($k);
            }

            return $this;
        }

        if ($this->keyExists($key)) {
            $array = $this->val();
            unset($array[$key]);

            $this->val($array);
        }

        return $this;
    }
1016730
public function removeProperty($key)
    {
        if (isset($this->properties[$key])) {
            unset($this->properties[$key]);
        }

        return $this;
    }
1127914
public function delete($key){
        $domain = ltrim($_SERVER['SERVER_NAME'], "www.");
        unset($_COOKIE[$key]);
        setcookie($key, "", -1, '/', $domain, $this->secured, $this->httpOnly);
    }
137521
function delete($key) {
        parent::delete($key);
        if($this !== $this->client->channels) {
            $this->client->channels->delete($key);
        }
        
        return $this;
    }
1058355
public function clear($key = null)
    {
        if (func_num_args() === 0) {
            $this->attributes = array();
        } elseif ($key === '$id') {
            throw new Exception('[Norm/Model] Restricting clear for $id.');
        } else {
            unset($this->attributes[$key]);
        }

        return $this;
    }
101895
public function clear($key)
    {
        if (true === $this->isAttribute($key)) {
            return $this->setAttribute($key, null);
        }
        if (true === $this->isEmbedHasOne($key)) {
            return $this->setEmbedHasOne($key, null);
        }
        if (true === $this->isEmbedHasMany($key)) {
            $collection = $this->hasManyEmbeds->get($key);
            $collection->clear();
            $this->doDirtyCheck();
            return $this;
        }
        return $this;
    }
348624
public function clearCookie(Cookie $cookie) : self
    {
        $cookie->setExpire(1);

        $this->cookies[$cookie->getName()] = $cookie;

        return $this;
    }
1157533
public function forget($key)
    {
        $key = Arr::wrap($key);
        $result = $this->whereIn('key', $key)->delete();
        $this->cacheForget($key);

        return $result;
    }
891460
public function remove($key) {
        $this->_data = Hash::remove($this->_data, $key);

        return $this;
    }
818598
public function delete($key)
    {
        $key = func_num_args() > 1 ? func_get_args() : $key;

        if (is_array($key)) {
            array_map([$this, __METHOD__], $key);

            return $this;
        }

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

        return $this;
    }
119032
public static function remove($key)
    {
        $old = null;

        if (!static::has($key)) {
            return $old;
        }

        if (!static::$is_decrypt[$key]) {
            $old = Crypto::decrypt($_COOKIE[$key]);

            unset(static::$is_decrypt[$key]);
        }

        static::add($key, null, -1000);
        unset($_COOKIE[$key]);

        return $old;
    }
76444
public function forget($key = null)
    {
        $this->startSession();

        if ($key === null) {
            unset($_SESSION[$this->session_key][$this->name]);
        } else {
            unset($_SESSION[$this->session_key][$this->name][$key]);
        }

        return $this;
    }
1332279
public function delete($key)
    {
        Arguments::define($this->getKeyType())->check($key);

        $cloned = array_merge($this->value);

        unset($cloned[$key]);

        return static::of($cloned);
    }