Removes element with given key.

@param mixed $key
@return mixed The value of the removed key
184236
public function remove($key) {
        $value = $this->elements[$this->hash($key)];
        unset($this->elements[$this->hash($key)]);
        $this->fire(new MapRemoveEvent($key, $value));
        return $value;
    }
601996
public function pull($key)
    {
        if (!$this->containsKey($key)) {
            return null;
        }
        $removed = $this->items[$key];
        unset($this->items[$key]);

        return $removed;
    }
1205390
public function del($key)
    {
        if (isset($this->value[$key])) {
            $t = $this->value[$key];
            unset($this->value[$key]);
            return $t;
        }

        return null;
    }
1240808
public function remove($key)
    {
        if ($key instanceof UniqueId) {
            $key = $key->id();
        }

        return $this->elements->remove($key);
    }
897730
public function remove($key)
    {
        if ($this->hasNot($key)) {
            return;
        }

        $item = $this->get($key);

        $this->unset($key);

        return $item;
    }
395385
public function removeValue(string $key): bool
    {
        if (isset($this->values[$key])) {
            unset($this->values[$key]);
            return true;
        }
        return false;
    }
869400
public function remove($key){
        return ($this->memcache) ? $this->memcache->remove($this->prefix . '_' . $key) : false;
    }
334379
public static function getAndRemove(string $key)
    {
        static::startSessionIfNotHasStartedForceWrite();

        $value = static::get($key);
        static::remove($key);

        return $value;
    }
1246891
public function remove($key)
    {
        if (isset($this->fields[$key])) {
            unset($this->fields[$key]);
        }
        return $this;
    }
1210131
public function delete($key)
    {
        $key = (string)$key;

        if (\array_key_exists($key, self::$registry)) {
            unset(self::$registry[$key]);
        }
        return $this;
    }
740863
public function forget($key)
	{
		$key = $this->id($key);
		return $this->apcu ? apcu_delete($key) : apc_delete($key);
	}
646272
public function remove(string $key)
    {
        // check if the $key is an alias
        if (isset($this->aliases[$key])) {
            $alias = $key;
            $key = $this->aliases[$key];
            unset($this->aliases[$alias]);
        }

        // if the key exists as a factory
        if ($this->hasFactory($key)) {
            unset($this->definitions['factory'][$key]);
            $this->removeAliasFor($key);
            return ! $this->hasFactory($key);
        }

        // if the key exists as an object
        if ($this->hasObject($key)) {
            unset($this->definitions['instance'][$key], $this->store[$key]);
            $this->removeAliasFor($key);
            return ! ($this->hasObject($key) || $this->hasStored($key));
        }

        // the key did not exist
        return false;
    }
1164938
public function delete($key)
    {
        if (is_array($key)) {
            foreach ($key as $k) {
                $this->set($k, null);
            }
        } else {
            $this->set($key, null);
        }
        return $this;
    }
251083
public function remove($key)
    {
        if (!$this->offsetExists($key)) {
            throw new UnexpectedValueException(sprintf('Unknown key %s.', $key));
        }

        return $this->offsetUnset($key);
    }
330245
public function remove( $key )
	{
		if( !$this->has( $key ) )																	//  pair key is not existing
			return FALSE;																			//  indicate miss
		$key	= !$this->caseSensitive ? strtolower( $key ) : $key;								//  lowercase key if dictionary is not case sensitive
		$index	= array_search( $key, array_keys( $this->pairs ) );									//  index of pair to be removed
		if( $index >= $this->position )																//  iterator position is beyond pair
			$this->position--;																		//  decrease iterator position since pair is removed
		unset( $this->pairs[$key] );																//  remove pair by its key
		return TRUE;																				//  indicate hit
	}
55778
public function remove($key) {
        $key = $this->conf['keyPrefix'] . $key;
        X::logger()->trace("MCache remove $key");
        return $this->cache->delete($key);
    }
267708
public function removeMeta($key)
    {
        $metadata = new ArrayCollection($this->metadata);
        $removed = $metadata->remove($key);
        $this->metadata = $metadata->toArray();

        return $removed;
    }