# Why julia has no clear(variable)?

**URL:** <https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 18, 2017, 11:15pm UTC](https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541 "2017-10-18T23:15:49Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [May 30, 2022, 7:09am UTC](https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541/17 "2022-05-30T07:09:07Z")

</div>

> [@foobar\_lv](#):
>
> You could legitimately ask why julia does not expose the global symbol table to you, i.e. does not provide an analogue of  
> del globals()[‘x’]  
> on the REPL (removing entries from dictionaries is easy in julia).

Now that this thread has been revived anyway: _is_ it possible to do this? I agree with this:

> [@e3c6](#):
>
> Note that deleting symbols is precisely what I want. It’s not about memory, it’s about removing a symbol from scope

The `let` solution is just too inconvenient, I’m never going to be bothered with that.

---

_[View the full topic](https://discourse.julialang.org/t/why-julia-has-no-clear-variable/6541)._
