ClearAttributes
ClearAttributes[symbol,attr]
removes attr from the list of attributes of the symbol symbol.
ClearAttributes["symbol",attr]
removes attr from the attributes of the symbol named "symbol" if it exists.
ClearAttributes[s,{attr1,attr2,…}]
removes several attributes at a time.
ClearAttributes[{s1,s2,…},attrs]
removes attributes from several symbols at a time.
Details
- ClearAttributes modifies Attributes[s].
- ClearAttributes has attribute HoldFirst.
- ClearAttributes does not affect symbols with the attribute Locked.
Examples
open allclose allBasic Examples (1)
Scope (1)
Properties & Relations (3)
ClearAttributes is equivalent to this assignment to the attributes:
Unprotecting a symbol is equivalent to clearing the Protected attribute:
After setting the attribute Locked, no more changes to the attributes can be made:
Text
Wolfram Research (1988), ClearAttributes, Wolfram Language function, https://reference.wolfram.com/language/ref/ClearAttributes.html.
CMS
Wolfram Language. 1988. "ClearAttributes." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ClearAttributes.html.
APA
Wolfram Language. (1988). ClearAttributes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ClearAttributes.html