RemoveProperty
✖
RemoveProperty
removes all properties associated with itemspec in obj.
removes the property name associated with itemspec in obj.
Details

- Properties are used to store and manipulate name->value pairs for specific named items within an object such as Graph, MeshRegion, and BoundaryMeshRegion.
- RemoveProperty will produce an object with the specified property removed.
- The item specification itemspec typically has the form {collection,index}.
- The index can typically have the following forms:
-
ind a single index {ind1,ind2,…} a list of indexes All all possible indexes in collection patt indexes that match patt in collection - The collection can typically have the following forms:
-
col a single collection {col1,col2,…} a list of collections All all possible collections patt collections that match patt - The item specification itemspec of the form collection refers to the default value for all indexes in the collection.
- For standard properties, RemoveProperty effectively resets the value to the property default value.
- Objects that support properties include Graph, MeshRegion, and BoundaryMeshRegion. Item specifications for each type of object is given in their reference pages.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (4)Survey of the scope of standard use cases
Basic Uses (2)
Remove one property from vertices:

https://wolfram.com/xid/0dc1zw5sneog-2pvvzp


https://wolfram.com/xid/0dc1zw5sneog-zn6eaw


https://wolfram.com/xid/0dc1zw5sneog-9jk1ux

Remove all properties from vertices:

https://wolfram.com/xid/0dc1zw5sneog-tk9ojo


https://wolfram.com/xid/0dc1zw5sneog-q858m1

Remove several properties from vertices:

https://wolfram.com/xid/0dc1zw5sneog-3xt0ml


https://wolfram.com/xid/0dc1zw5sneog-h6954d

Vertex Properties (1)
Set several properties for a graph:

https://wolfram.com/xid/0dc1zw5sneog-0dpop


https://wolfram.com/xid/0dc1zw5sneog-fdjlrq

https://wolfram.com/xid/0dc1zw5sneog-gtk1gj

Remove vertex properties including VertexStyle:

https://wolfram.com/xid/0dc1zw5sneog-86gx3a


https://wolfram.com/xid/0dc1zw5sneog-674ctc


https://wolfram.com/xid/0dc1zw5sneog-x521sz


https://wolfram.com/xid/0dc1zw5sneog-mof0lv


https://wolfram.com/xid/0dc1zw5sneog-rwdslt


https://wolfram.com/xid/0dc1zw5sneog-ber6en


https://wolfram.com/xid/0dc1zw5sneog-gz21v3

https://wolfram.com/xid/0dc1zw5sneog-sre64z

Edge Properties (1)
Set several properties for a graph:

https://wolfram.com/xid/0dc1zw5sneog-nbluxe


https://wolfram.com/xid/0dc1zw5sneog-2pyz4g

https://wolfram.com/xid/0dc1zw5sneog-xs75fo

Remove edge properties including EdgeStyle:

https://wolfram.com/xid/0dc1zw5sneog-n3rv7e


https://wolfram.com/xid/0dc1zw5sneog-w2ficl


https://wolfram.com/xid/0dc1zw5sneog-b1ii2s


https://wolfram.com/xid/0dc1zw5sneog-sdmtz5


https://wolfram.com/xid/0dc1zw5sneog-qwis1o

https://wolfram.com/xid/0dc1zw5sneog-i97yvt

Applications (1)Sample problems that can be solved with this function
Use Fold to apply RemoveProperty repeatedly:

https://wolfram.com/xid/0dc1zw5sneog-k3rcpt


https://wolfram.com/xid/0dc1zw5sneog-bacoh4


https://wolfram.com/xid/0dc1zw5sneog-mcoki

Properties & Relations (6)Properties of the function, and connections to other functions
Use Property as a wrapper to specify properties in functions such as Graph:

https://wolfram.com/xid/0dc1zw5sneog-pmyd10

Use PropertyValue to extract values:

https://wolfram.com/xid/0dc1zw5sneog-cnije5


https://wolfram.com/xid/0dc1zw5sneog-bugy84

For undefined properties, the value $Failed is returned:

https://wolfram.com/xid/0dc1zw5sneog-3gnhk


https://wolfram.com/xid/0dc1zw5sneog-drfzj

Use PropertyValue to set properties in a graph:

https://wolfram.com/xid/0dc1zw5sneog-bdgmup


https://wolfram.com/xid/0dc1zw5sneog-j5ffjf
The original graph has changed:

https://wolfram.com/xid/0dc1zw5sneog-cymb7h

Use PropertyValue to unset properties in a graph:

https://wolfram.com/xid/0dc1zw5sneog-cjui4h


https://wolfram.com/xid/0dc1zw5sneog-hj407v
The original graph has changed:

https://wolfram.com/xid/0dc1zw5sneog-i3xvl

Use PropertyList to test for the presence of a property:

https://wolfram.com/xid/0dc1zw5sneog-nyg7ak


https://wolfram.com/xid/0dc1zw5sneog-c7a00s

Generate a list of vertex label rules:

https://wolfram.com/xid/0dc1zw5sneog-nqsxxe

Use SetProperty to set a property without changing the original:

https://wolfram.com/xid/0dc1zw5sneog-9qokq2


https://wolfram.com/xid/0dc1zw5sneog-3uglu2

The original graph is unchanged:

https://wolfram.com/xid/0dc1zw5sneog-xclg5q

Possible Issues (1)Common pitfalls and unexpected behavior
PropertyValue is typically faster than RemoveProperty:

https://wolfram.com/xid/0dc1zw5sneog-z1b5pb

https://wolfram.com/xid/0dc1zw5sneog-hskqf2


https://wolfram.com/xid/0dc1zw5sneog-ier4ri

https://wolfram.com/xid/0dc1zw5sneog-denl2i

Wolfram Research (2010), RemoveProperty, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveProperty.html (updated 2015).
Text
Wolfram Research (2010), RemoveProperty, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveProperty.html (updated 2015).
Wolfram Research (2010), RemoveProperty, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveProperty.html (updated 2015).
CMS
Wolfram Language. 2010. "RemoveProperty." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/RemoveProperty.html.
Wolfram Language. 2010. "RemoveProperty." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/RemoveProperty.html.
APA
Wolfram Language. (2010). RemoveProperty. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoveProperty.html
Wolfram Language. (2010). RemoveProperty. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoveProperty.html
BibTeX
@misc{reference.wolfram_2025_removeproperty, author="Wolfram Research", title="{RemoveProperty}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/RemoveProperty.html}", note=[Accessed: 06-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_removeproperty, organization={Wolfram Research}, title={RemoveProperty}, year={2015}, url={https://reference.wolfram.com/language/ref/RemoveProperty.html}, note=[Accessed: 06-June-2025
]}