This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


removes symbols completely, so that their names are no longer recognized by Mathematica.
removes all symbols whose names match any of the string patterns .
  • You can use Remove to get rid of symbols that you do not need, and which may shadow symbols in contexts later on your context path.
  • Remove allows the following metacharacters:
*match zero or more characters
@match one or more characters, but not uppercase letters
  • Remove removes all symbols in a particular context.
  • Once you have removed a symbol, you will never be able to refer to it again, unless you recreate it.
  • If you have an expression that contains a symbol which you remove, the removed symbol will be printed as , where its name is given in a string.
Remove all symbols in a given context:
Specify symbols to remove as string patterns:
If a symbol from a package is used before the package is loaded, an extra symbol is created:
The extra symbol should be removed:
Only the correct symbol from the package remains:
If a symbol is removed, all of its properties and definitions are removed as well:
Using the same symbol again creates a new one without any of its old properties:
ClearAll also removes all properties and definitions, but leaves the symbol intact:
If an expression still refers to a removed symbol, those places are denoted with :
Protected symbols cannot be removed:
Use Unprotect to remove protected symbols:
New in 1