# Clear

Clear[symb1, symb2, ...]
clears all values of the given symbols. The arguments can also be given as strings containing symbol names.

• x = 2;

• Clear[x]

• x

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]