Delete a branch into a tree

Hi,
I have tried some methods to delete a branch into a tree, but in many case I obtain only a root crash.
What are the correct method to delete a branch into a tree?

Thank you very much.
Best regards
Bulgarelli

In general this does not make sense unless you want to copy a subset of a Tree to a new Tree. What do you want to do exactly?

Rene

Hi,
I would like to create a tree with the results of an algorithm with the data input coming from anothet tree in the same file. After a verification of the results (using some routine), I change the parameters of the algorithm and recreate the same tree with the new parameters. But I need to delete the old tree.
Maybe is not the best way. Have you some suggestion?

Thank you very much.
Best regards
Andrea Bulgarelli

Write your new Tree to a separate file.
See example in tutorials $ROOTSYS/tutorials/tree/copytree2.C, copytree3.C

Rene