Unset an item

@param  string | int $key
@return Collection
1153
public function unsetItem($key) {
		if (is_array($key)) {
			$key = $this->arrayHashFunction($key);
		}
		
		if (! isset($this->_data[$key])) {
			return;
		}
		
		unset($this->_data[$key], $this->_models[$key]);
		$this->_map = array_keys($this->_data);
		
		return $this;
	}
165033
function del($key)
    {
        if ($this->has($key)) {
            $p = &$this->__attainInternalPointer();
            unset($p[$key]);
        }

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

        return $this;
    }
1053577
public function forget( $key )
	{
		$success = $this->store->forget( $this->itemKey( $key ) );

		$this->fireCacheEvent( 'delete', [$key] );

		return $success;
	}
1360512
public function pull($key)
    {
        $item = $this->get($key);

        $this->remove($key);

        return $item;
    }
1122041
public function remove(string $key)
    {
        if (isset($this->headers[$key])) {
            unset($this->headers[$key]);
        }

        return $this;
    }
137032
public function clearFilter($key=null)
    {
        if (!$key) {
            $this->filters = [];
            return $this;
        }

        if (isset($this->filters[$key])) {
            unset($this->filters[$key]);
        }

        return $this;
    }
620378
public function offsetUnset($key)
    {
        $this->items = array_filter($this->items, function ($item) use ($key) {
            $primaryKey = $this->getEntityKey($item);

            return $primaryKey !== $key;
        });
    }
690901
public function deleteItem($key)
    {
        if (isset($this->items[$key])) {
            unset($this->items[$key]);
        } else {
            throw new KeyInvalidException("Invalid key $key.");
        }
        return $this;
    }
305689
public function exclude($key)
    {
        $this->populateInput();

        if (array_key_exists($key, $this->input)) {
            unset($this->input[$key]);
        }

        return $this->input;
    }
1270023
public function unset(string $key)
    {
        if (array_key_exists($key, $this->input)) {
            unset($this->input[$key]);
            unset($this->cache[$key]);
        }

        $item = &$this->input;

        foreach (explode('.', $key) as $segment) {
            if (! isset($item[$segment])) {
                return;
            }
            if (! is_array($item[$segment])) {
                unset($item[$segment]);
                break;
            }
            $item = &$item[$segment];
        }

        unset($this->cache[$key]);
    }
392517
public function delete($key)
    {
        key_exists_or_fail($key, $this->data);
        unset($this->data[$key]);
        $this->data = array_values($this->data);

        return $this;
    }
427039
public function remove($key) {
		$key = $this->extractKey($key);
		if (isset($this->collection[$key])) {
			$element = $this->collection[$key];
			unset($this->collection[$key]);
			
			return $element;
		}
	}
1300767
public function remove($key)
    {
        $key = $this->resolveAlias($key);

        if (isset($this->dataStore[$key])) {
            unset($this->dataStore[$key]);
        }

        return $this;
    }
1359652
protected function clearRemoval($key)
    {
        if (false === $this->willRemove($key)) {
            return $this;
        }
        $key = array_search($key, $this->remove);
        unset($this->remove[$key]);
        $this->remove = array_values($this->remove);
        return $this;
    }
202673
private function preRemoveItem($key)
    {
        $item = $this->getItem($key);
        $this->removeTagEntries($item);

        return $this;
    }
525248
public function remove($key)
    {
        $value = null;

        if ($this->has($key)) {
            $value = $this->data[$key];
            unset($this->data[$key]);
        }

        return $value;
    }