2
$\begingroup$

Consider the following code :

In[19]:= a = 2;

In[20]:= ClearAll["Global'*"];

In[21]:= a

Out[21]= 2

As you see, the variable a hasn't been resetted. Why ? ClearAll["Global'*"] is supposed to clear all user defined symbol : How do I clear all user defined symbols?

$\endgroup$
  • $\begingroup$ `$\neq$'${}{}{}$ $\endgroup$ – AccidentalFourierTransform Jun 23 '19 at 15:30
  • 8
    $\begingroup$ not ClearAll["Global'*"]; but ClearAll["Global`*"]; $\endgroup$ – Xminer Jun 23 '19 at 15:32