Mathematica 9 is now available
Previous section-----Next section

A.5.4 Clearing and Removing Objects

expr =. clear a value defined for expr
f/: expr =. clear a value associated with f defined for expr
Clear[ ,  , ... ] clear all values for the symbols  , except for attributes, messages and defaults
ClearAll[ ,  , ... ] clear all values for the  , including attributes, messages and defaults
Remove[ ,  , ... ] clear all values, and then remove the names of the

Ways to clear and remove objects.

Clear, ClearAll and Remove can all take string patterns as arguments, to specify action on all symbols whose names match the string pattern.

Clear, ClearAll and Remove do nothing to symbols with the attribute Protected.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.