# How to delete RDataFrame and clean up memory

**URL:** <https://root-forum.cern.ch/t/how-to-delete-rdataframe-and-clean-up-memory/33036>\
**Category:** ROOT\
**Tags:** rdataframe, python, tree, root\
**Created:** [March 5, 2019, 7:06pm UTC](https://root-forum.cern.ch/t/how-to-delete-rdataframe-and-clean-up-memory/33036 "2019-03-05T19:06:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [March 6, 2019, 1:20pm UTC](https://root-forum.cern.ch/t/how-to-delete-rdataframe-and-clean-up-memory/33036/6 "2019-03-06T13:20:06Z")

</div>

Hi,  
looks like the peak RAM usage is actually lower before. Is there something I’m missing?

If you can provide a simple example that make RAM usage really explode, e.g. up to 4 or 8 GB so that it’s obvious there is something that should be freed and isn’t, we might be able to take a look and investigate whether something can be done about it.

Cheers,  
Enrico

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-delete-rdataframe-and-clean-up-memory/33036)._
