MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ClearAll ?? or what

  • To: mathgroup at
  • Subject: [mg102793] Re: ClearAll ?? or what
  • From: Bill Rowe <readnews at>
  • Date: Thu, 27 Aug 2009 06:35:52 -0400 (EDT)

On 8/26/09 at 7:41 AM, noslowski at (noslowski) wrote:

>Is there a command that will remove all variables, custom functions,
>equations and so on? I have tried every one that I can find
>including ClearAll [ " Global ' * "
>], and so on.

There is a package that comes with Mathematic that will probably
do what you need. Specifically, doing


at the start of a session will load the package. Then at some
later time in the session you can simply do


which will cause the will clear everything out that was created
*after* the CleanSlate package was loaded. I find this so handy
that I have the following lines at the end of my init.m file


I explicitly load the PacletManager since I found in version 6
it loaded after every thing in my init.m file executed. As a
consequence, omitting this meant everytime I did CleanSlate[],
the paclet manager got zapped and I lost that functionality. I
do not know if this is still an issue with version 7 or not
since I've not tried omitting the line that explicitly loads the
paclet manager from my init.m file since using version 7.

  • Prev by Date: Re: image from graphics3d - rid black line
  • Next by Date: Re: ClearAll ?? or what
  • Previous by thread: Re: ClearAll ?? or what
  • Next by thread: Re: ClearAll ?? or what