# Removal of workspace() and a way to clear variables

**URL:** https://discourse.julialang.org/t/removal-of-workspace-and-a-way-to-clear-variables/11107
**Category:** Internals & Design
**Created:** [May 23, 2018, 6:26pm UTC](https://discourse.julialang.org/t/removal-of-workspace-and-a-way-to-clear-variables/11107 "2018-05-23T18:26:46Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [May 23, 2018, 9:15pm UTC](https://discourse.julialang.org/t/removal-of-workspace-and-a-way-to-clear-variables/11107/8 "2018-05-23T21:15:01Z")

</div>

> [@jeff.bezanson](#):
>
> Actually I think it’s more the opposite

We’re in agreement here. However, it might be better to call this function `clear()` and to define `clear(:name)` to do `clear()` to get a fresh main module and then create bindings for everything that was in the old main except for `name`.

---

_[View the full topic](https://discourse.julialang.org/t/removal-of-workspace-and-a-way-to-clear-variables/11107)._
