Clear
[$symb_1$, $symb_2$, ...]x = 2;
Clear[x]
x
x = 2;
y = 3;
Clear["Global`*"]
x
y
ClearAll
may not be called for Protected
symbols.
Clear[Sin]
The values and rules associated with built-in symbols will not get lost when applying Clear
(after unprotecting them):
Unprotect[Sin]
Clear[Sin]
Sin[Pi]
Clear
does not remove attributes, messages, options, and default values associated with the symbols. Use ClearAll
to do so.
Attributes[r] = {Flat, Orderless};
Clear["r"]
Attributes[r]