Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


clears values and definitions for the symboli.

clears values and definitions for all symbols whose names match any of the string patterns formi.


  • 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