# How to release memory with EzXML

**URL:** https://discourse.julialang.org/t/how-to-release-memory-with-ezxml/76533
**Category:** Performance
**Tags:** package, xml
**Created:** [February 16, 2022, 4:24am UTC](https://discourse.julialang.org/t/how-to-release-memory-with-ezxml/76533 "2022-02-16T04:24:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jade\_mackay](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jade_mackay/32/6659_2.png) [@jade\_mackay](https://discourse.julialang.org/u/jade_mackay)
#### Post date: [February 16, 2022, 4:24am UTC](https://discourse.julialang.org/t/how-to-release-memory-with-ezxml/76533/1 "2022-02-16T04:24:58Z")

</div>

Is there any way to release the memory after using `EzXML`’s `readxml(path)` function?  
I have tried

```julia
doc = readxml(path)
doc = nothing
GC.gc()

```

Thanks!

---

<div class="post-metadata">

### Author: ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)
#### Post date: [February 25, 2022, 5:56am UTC](https://discourse.julialang.org/t/how-to-release-memory-with-ezxml/76533/2 "2022-02-25T05:56:55Z")

</div>

Assuming you are using [EzXML.jl](https://github.com/JuliaIO/EzXML.jl) maybe you should ask there?
