src/Franzose/ClosureTable/Models/Entity.php
public function removeChild($position = null, $forceDelete = false)
    {
        if ($this->exists) {
            $action = ($forceDelete === true ? 'forceDelete' : 'delete');

            $this->children($position)->$action();
        }

        return $this;
    }
public function removeChild($position = null, $forceDelete = false)
    {
        if ($this->exists) {
            $action = ($forceDelete === true ? 'forceDelete' : 'delete');

            $this->children($position)->$action();
        }

        return $this;
    }
public function removeChild ( $ position = null , $ forceDelete = false ) { if ( $ this -> exists ) { $ action = ( $ forceDelete === true ? 'forceDelete' : 'delete' ) ; $ this -> children ( $ position ) -> $ action ( ) ; } return $ this ; }
Removes a model's child with given position.

@param int $position
@param bool $forceDelete
@return $this
Removes a model s child with given position .