Clear

Clear[symbol1,symbol2,]
clears values and definitions for the .

Clear["form1","form2",]
clears values and definitions for all symbols whose names match any of the string patterns .

DetailsDetails

  • Clear does not clear attributes, messages, or defaults associated with symbols.
  • Clear allows abbreviated string patterns containing the following metacharacters:
  • *zero or more characters
    @one or more characters, excluding uppercase letters
    \\*, etc.literal *, etc.
  • Clear["context`*"] clears all symbols in a particular context.
  • Clear is HoldAll.
  • Clear does not affect symbols with the attribute Protected.
Introduced in 1988
(1.0)