Delete RooObject in RooWorkspace

Try: gDirectory->Delete(“myRooObject;*”);
If it helps, see http://root.cern.ch/root/html/TDirectoryFile.html#TDirectoryFile:Delete and/or http://root.cern.ch/root/html/TFile.html#TFile:Delete