Re: ClearAll ?? or what
- To: mathgroup at smc.vnet.net
- Subject: [mg102793] Re: ClearAll ?? or what
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Thu, 27 Aug 2009 06:35:52 -0400 (EDT)
On 8/26/09 at 7:41 AM, noslowski at comcast.net (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 <<Utilities`CleanSlate` at the start of a session will load the package. Then at some later time in the session you can simply do CleanSlate[] 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 <<PacletManager`; <<Utilities`CleanSlate`; SetOptions[CleanSlate,Verbose->False]; 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.