src/League/Monga/Query/Update.php
public function remove($field)
    {
        if (! is_array($field)) {
            $field = func_get_args();
        }

        foreach ($field as $f) {
            $this->update('$unset', $f, 1);
        }

        return $this;
    }
public function remove($field)
    {
        if (! is_array($field)) {
            $field = func_get_args();
        }

        foreach ($field as $f) {
            $this->update('$unset', $f, 1);
        }

        return $this;
    }
public function remove ( $ field ) { if ( ! is_array ( $ field ) ) { $ field = func_get_args ( ) ; } foreach ( $ field as $ f ) { $ this -> update ( '$unset' , $ f , 1 ) ; } return $ this ; }
Removes a field from a document.

@param string $field field to remove

@return object $this
Removes a field from a document .