# Delete TH1 from rootfile

**URL:** <https://root-forum.cern.ch/t/delete-th1-from-rootfile/36932>\
**Category:** ROOT\
**Created:** [November 22, 2019, 6:36pm UTC](https://root-forum.cern.ch/t/delete-th1-from-rootfile/36932 "2019-11-22T18:36:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [November 23, 2019, 3:41pm UTC](https://root-forum.cern.ch/t/delete-th1-from-rootfile/36932/4 "2019-11-23T15:41:26Z")

</div>

The “`delete f;`” will “close” the opened file (and cleanup RAM).

> [@Aux;1 aux;2 aux3;](https://root-forum.cern.ch/t/aux-1-aux-2-aux3/13345/2):
>
> Search for “cycle” and/or “namecycle”, for example in: In a Nutshell: [Input and Output](https://root.cern.ch/d/input-and-output) . ROOT User’s Guide: [Input/Output](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#inputoutput) : [Retrieving Objects from Disk](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#retrieving-objects-from-disk) , [Subdirectories and Navigation](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#subdirectories-and-navigation) . Just for reference: [some additional notes about GetObject, Get, FindObjectAny, FindKeyAny, ReadObj, ReadObjAny](https://root-forum.cern.ch/t/broken-tdirectoryfile-findobjectany-and-tdirectoryfile-findkeyany/20943/16) .

---

_[View the full topic](https://root-forum.cern.ch/t/delete-th1-from-rootfile/36932)._
