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

Examples

open allclose all

Basic Examples  (1)

Listable function threads over its list argument:

Clear the Listable attribute:

Without the Listable attribute, the function applies to the entire argument only:

Scope  (1)

Set a number of attributes for the symbol f:

Clear a particular attribute; the remaining ones are retained:

Clear several attributes:

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:

Wolfram Research (1988), ClearAttributes, Wolfram Language function, https://reference.wolfram.com/language/ref/ClearAttributes.html.

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_2024_clearattributes, author="Wolfram Research", title="{ClearAttributes}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/ClearAttributes.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_clearattributes, organization={Wolfram Research}, title={ClearAttributes}, year={1988}, url={https://reference.wolfram.com/language/ref/ClearAttributes.html}, note=[Accessed: 22-December-2024 ]}