Removes an item by key, and optionally by class (in addition).

@param string $key Item key.
@param string $class [Optional] Only remove the given class.

@return $this
349054
public function remove($key, $class = null) {
			
		if (isset($this->_data[$key])) {
			
			if (empty($class) || $this->_data[$key] instanceof $class) {
				unset($this->_data[$key]);
			}
		}
		
		if (isset($this->registered[$key])) {
			
			if (empty($class) || $class === $this->registered[$key]) {
				unset($this->registered[$key]);
			}
		}
		
		return $this;
	}
9001
public function remove($key, $when = self::NEXT)
    {
        $deleteWhen = $when == self::ALL ? self::$when : (array) $when;
        foreach ($deleteWhen as $when) {
            $this->set($key, null, $when);
        }

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

        return $this;
    }
104430
function delete($key) {
        parent::delete($key);
        if($this !== $this->client->guilds) {
            $this->client->guilds->delete($key);
        }
        
        return $this;
    }
418203
public function deleteItem($key)
    {
        if (array_key_exists($key, $this->data)) {
            unset($this->data[$key]);
        }

        return $this;
    }
569197
public function addClass($class) {
		$class = trim($class);
		
		if (strpos($class, ' ') !== false) {
			$this->addClasses(explode(' ', $class));
			return $this;
		}
		
		$this->_classes[$class] = $class;
		$this->_tagCached       = null;
		
		return $this;
	}
1100734
public function remove($key)
    {
        unset($this->data[$key]);
        $this->response->removeCookie($key);
        return $this;
    }
130082
public function remove($key)
    {
        $this->removeKeyFromNestedCache($key);

        if ($this->isNestedKey($key)) {
            $this->removeNestedValueByKey($key);

            return;
        }

        unset($this->items[$key]);
    }
1127571
public function removeClass($class)
    {
        $this->setOption(self::OPTION_METHOD, "removeClass");
        $this->setOption(self::OPTION_REMOVE_CLASS, $class);

        return $this;
    }
904103
public function remove($key)
    {
        $keys = explode('.', $key);
        $section = &$this->items;

        while (count($keys) > 1) {
            $key = array_shift($keys);

            if (! isset($section[$key])) {
                return;
            }

            $section = &$section[$key];
        }

        unset($section[array_shift($keys)]);

        $this->notify();
    }
159403
public function remove($key)
    {
        $keys = explode('.', $key);

        $data = $this->getAll();

        $resource = &$data;
        foreach ($keys as $index => $key) {
            if (!isset($resource[$key])) {
                // We bail, the requested key could not be found
                return $this;
            }
            if ($index < (count($keys) - 1)) {
                $resource = &$resource[$key];
            }
        }
        unset($resource[$key]);

        $this->setAll($data);

        return $this;
    }
283538
public function except($key)
    {
        $keys = is_array($key) ? $key : func_get_args();

        return new static($this->classname, array_diff_key($this->items, $this->filterByKeys($keys)));
    }
515612
public function remove($class, array $id)
    {
        if (!$this->isEnabled()) {
            return false;
        }

        $key = self::key($class, $id);
        unset($this->members[$key]);
    }
1278577
public function remove($key) {
    $file = $this->getFile($this->getKey($key));
    $file->delete();
    return $this;
  }
763612
public function remove(string $key): self
    {
        $this->data = Arr::remove($this->data, $key);
        return $this;
    }
864457
protected function getKey($key, $class)
    {
        if ($key === null || !is_string($key)) {
            $class_path = (is_string($class)) ? $class : get_class($class);

            $key = explode('\\', $class_path);
            $key = end($key);
        }

        return Helper::snakeCase($key);
    }
710248
public function unmap( $key )
    {
        Option::remove( $this->_map, $this->_hashKey( $key ) );

        return $this;
    }