Go to:
Return value. Related commands. Flags. Examples.
Synopsis
deleteAttr <flags> <nodes | attrs>
This command is used to delete a dynamic attribute
from a node or nodes. The attribute can be specified
by using either the long or short name. Only one
dynamic attribute can be deleted at a time. Static
attributes cannot be deleted. Children of a compound
attribute cannot be deleted. You must delete the
complete compound attribute. This command has no
edit capabilities. The only query ability is to list
all the dynamic attributes of a node.
Return value
none
Related commands
addAttr, aliasAttr, getClassification, nodeType, objExists, attributeInfo, objectType, renameAttrFlags
attribute, query
Long name (short name) | [argument types] | Properties |
---|
-attribute
(-at)
| string |  |
|
Specify either the long or short name of the attribute.
|
|
-query
(-q)
|
|  |
|
List all dynamic attributes of a node.
Only one node may be specified.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command
|
Examples
createNode planet -n mars;
addAttr -ln martians -sn mr -at double;
addAttr -ln greenMen -sn gm -at double;
// Delete an attribute named mr/martians.
deleteAttr -at mr mars;
// Alternative syntax
deleteAttr mars.greenMen;
// Query for the list of dynamic attributes.
deleteAttr -q mars;