TFile->Delete()

Hello!

Well, I have a root file f->ls():
TFile** jS_central.root
TFile* jS_central.root
KEY: TH1F flavour;1 Quark flavour
KEY: TH1D quarkJetsPartonPythia62;1 #psi®
KEY: TH1D gluonJetsPartonPythia62;1 #psi®
KEY: TH1D gluonPartonPythia62;1 #psi®
KEY: TH1D quarkPartonPythia62;1 #psi®
KEY: TH1D qPartonPythia62;1 #psi®
KEY: TH1D gPartonPythia62;1 #psi®
Does somebody know, if it is possible to delete a histogram from the file?

Thanks in advance,
Kaloyan

P.S. f->Delete(“flavour;1”) doesn’t seem to work!

You probably forgot to open the file in “update” mode

Rene

Yes, I did.
Now it works.