Difference between revisions of "NXSL:DeleteCustomAttribute"

From NetXMS Wiki
Jump to navigation Jump to search
Line 1: Line 1:
__NOTOC__
__NOTOC__
Delete node's custom attribute.
Delete objects custom attribute.


'''Since:''' 1.2.17
'''Since:''' 1.2.17


== Syntax ==
== Syntax ==
DeleteCustomAttribute(''node'', ''attributeName'')
DeleteCustomAttribute(''object'', ''attributeName'')


== Parameters ==
== Parameters ==
{| class="wikitable"
{| class="wikitable"
|-
|-
| ''node'' || [[NXSL:Node|Node]] object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see [[SG:Security Issues|Security Issues]] for more information).
| ''object'' || [[NXSL_Class_Reference|object]] any object of NetObj class, or it's sub-classes
you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see [[SG:Security Issues|Security Issues]] for more information).
|-
|-
| ''attributeName'' || Custom attribute name.
| ''attributeName'' || Custom attribute name.

Revision as of 18:17, 21 December 2017

Delete objects custom attribute.

Since: 1.2.17

Syntax

DeleteCustomAttribute(object, attributeName)

Parameters

object object any object of NetObj class, or it's sub-classes

you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see Security Issues for more information).

attributeName Custom attribute name.

Return Value

null

Examples

DeleteCustomAttribute($node, "my_attribute");