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

Documentation / Mathematica / Built-in Functions / Programming / Scoping /

Remove

FilledSmallSquare Remove[, ... ] removes symbols completely, so that their names are no longer recognized by Mathematica.

FilledSmallSquare Remove["", "", ... ] removes all symbols whose names match any of the string patterns .

FilledSmallSquare 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.

FilledSmallSquare Remove["form"] allows metacharacters such as *, as specified in Section A.3.13.

FilledSmallSquare Remove["context`*"] removes all symbols in a particular context.

FilledSmallSquare Remove does not affect symbols with the attribute Protected.

FilledSmallSquare Once you have removed a symbol, you will never be able to refer to it again, unless you recreate it.

FilledSmallSquare If you have an expression that contains a symbol which you remove, the removed symbol will be printed as Removed["name"], where its name is given in a string.

FilledSmallSquare See Section 1.3.10, Section 2.7.8, Section 2.7.12 and Section A.5.4.

FilledSmallSquare See also: Clear.

FilledSmallSquare New in Version 1.

Further Examples