# Clearing a variable?

**URL:** <https://discourse.julialang.org/t/clearing-a-variable/32618>\
**Category:** New to Julia\
**Created:** [December 23, 2019, 11:32am UTC](https://discourse.julialang.org/t/clearing-a-variable/32618 "2019-12-23T11:32:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [December 23, 2019, 11:50am UTC](https://discourse.julialang.org/t/clearing-a-variable/32618/2 "2019-12-23T11:50:07Z")

</div>

> [@amca01](#):
>
> Is there any way of completely removing a user variable from the namespace?

No

> [@amca01](#):
>
> Or of writing over it?

No, variable can only be declared `const` at their first definition (and function-defs do this implicitly).

(Also, a variable which was declared `const` cannot be bound to a value of another type.)

Sorry!

---

_[View the full topic](https://discourse.julialang.org/t/clearing-a-variable/32618)._
