ClearAttributes[symbol,attr]
removesattr from the list of attributes of the symbolsymbol.
ClearAttributes["symbol",attr]
removesattr 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.


ClearAttributes
ClearAttributes[symbol,attr]
removesattr from the list of attributes of the symbolsymbol.
ClearAttributes["symbol",attr]
removesattr 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 modifiesAttributes[s].
- ClearAttributes has attributeHoldFirst.
- ClearAttributes does not affect symbols with the attributeLocked.
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 theProtected attribute:
After setting the attributeLocked, no more changes to the attributes can be made:

See Also
Tech Notes
Related Guides
History
Introduced in 1988(1.0)
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
BibTeX
@misc{reference.wolfram_2025_clearattributes, author="Wolfram Research", title="{ClearAttributes}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/ClearAttributes.html}", note=[Accessed: 29-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_clearattributes, organization={Wolfram Research}, title={ClearAttributes}, year={1988}, url={https://reference.wolfram.com/language/ref/ClearAttributes.html}, note=[Accessed: 29-November-2025]}
[8]ページ先頭