src/PHPCRAPI/PHPCR/AbstractCollection.php
public function remove($name)
    {
        if (!array_key_exists($name, $this->items)) {
            throw new CollectionUnknownKeyException(sprintf('Item name=%s does not exist in collection',$name));
        }

        unset($this->items[$name]);

        return true;
    }
public function remove($name)
    {
        if (!array_key_exists($name, $this->items)) {
            throw new CollectionUnknownKeyException(sprintf('Item name=%s does not exist in collection',$name));
        }

        unset($this->items[$name]);

        return true;
    }
public function remove ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> items ) ) { throw new CollectionUnknownKeyException ( sprintf ( 'Item name=%s does not exist in collection' , $ name ) ) ; } unset ( $ this -> items [ $ name ] ) ; return true ; }
Remove an item from the collection

@param string $name The name of the item

@return boolean Returns true in case of success

@throws CollectionUnknownKeyException if the item does not exist in the collection

@api
Remove an item from the collection