# Is there a way to 'unload' modules in Julia?

**URL:** <https://discourse.julialang.org/t/is-there-a-way-to-unload-modules-in-julia/54464>\
**Category:** New to Julia\
**Created:** [February 2, 2021, 2:32pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-unload-modules-in-julia/54464 "2021-02-02T14:32:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefkuypers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefkuypers/32/19185_2.png) [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Post date:** [February 2, 2021, 2:32pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-unload-modules-in-julia/54464/1 "2021-02-02T14:32:58Z")

</div>

Hi,

Currently, every time I change some code in a module I quit and restart Julia and recompile all the code. But as the code base grows this is going to take more and more time. It would be great of I could make Julia ‘forget’ a module so I can just recompile the module I made changes to.

Thanks in advance,  
Stef

---

<div class="post-metadata">

**Author:** ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Post date:** [February 2, 2021, 2:37pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-unload-modules-in-julia/54464/2 "2021-02-02T14:37:39Z")

</div>

Do you know of [`Revise.jl`](https://github.com/timholy/Revise.jl)? The workflow of most people does not involve restarting the Julia session every time a change is made in the module you are working on, but just let `Revise.jl` to silently recompile the differences for you.

---

<div class="post-metadata">

**Author:** ![Marcell\_Havlik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcell_havlik/32/37424_2.png) [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Post date:** [February 8, 2021, 11:10pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-unload-modules-in-julia/54464/3 "2021-02-08T23:10:57Z")

</div>

By the way I am interested about whether it is possible to unload. For me I would test some package load time/invalidation counter and it would be great to have that feature.
