Needs["Utilities`CleanSlate`"]
x:= 4
x
(*4*)
CleanSlate[]
(*During evaluation of In[4]:= (CleanSlate) Contexts purged: {Global`}*)
(*During evaluation of In[4]:= (CleanSlate) Approximate kernel memory recovered: 0 Kb*)
(*{"Utilities`CleanSlate`", "PacletManager`", "QuantityUnits`", \ "WebServices`", "System`", "Global`"}*)
x
(*4*)
When I use CleanSlate[] the variable x should be cleared from memory, right? Why does it still remain afterwards?
xfor me. – VF1 May 13 '14 at 02:49Quitinstead of using CleanSlate. CleanSlate was relevant when computers were slower and the kernel took a considerable time to start up. UsingQuitwas annoying at that time. Now kernel startup is fast enough that I just quit when I need a clean slate ... – Szabolcs May 13 '14 at 02:52Unprotect["In"]andClear[In]? That should clear all of the input lines in the frontend right? It does nothing for me... – 1110101001 May 13 '14 at 04:29/Applications/Mathematica.app/Contents/MacOS/MathKernel -noinit. Then try again. Does it work? – Szabolcs May 13 '14 at 14:28