removeChild() public method

Removes the child by id.
public removeChild ( integer $id )
$id integer
 /**
  * Removes this node and all its children from the
  * DOM tree.
  *
  * @return void
  */
 public function delete()
 {
     if (!is_null($this->parent)) {
         $this->parent->removeChild($this->id);
     }
     $this->parent = null;
 }