How to remove a TPaveText from a TPad?


I have a TPad with a histogram and its title. I want to draw only histogram, but not a title of it.
I tried to use gStyle.SetOptTitle(0) but it did not work (my be because I use RooHist). So I tried to remove the TPaveText object of the title directly:

title = mypad->FindObject("title"); // the object is found.
mypad->RecursiveRemove(title);  // no, the title is not removed

What is wrong?

Thanks in advance,

I just tried:


Before plotting an histogram, and it is working well for me.