Deleting node with properties

Questions regarding the use of the ANSI C SDK for Server or Client development or integration into customer products ...

Moderator: uasdkc

Post Reply
jfsi
Full Member
Full Member
Posts: 5
Joined: 14 Sep 2017, 08:35

Deleting node with properties

Post by jfsi »

Hello,
I need to delete nodes that have children properties. However when using UaServer_RemoveNode(), the properties are not removed from the server address space.
I see the C++ sdk has a deleteUaNode() method with a recursive parameter. Is there an equivalent in the ANSI C sdk?

Thanks in advance,
Jfsi

jfsi
Full Member
Full Member
Posts: 5
Joined: 14 Sep 2017, 08:35

Re: Deleting node with properties

Post by jfsi »

Ok, I found the way:
Call OpcUa_BaseNode_GetReferences to get all references in a UaBase_Vector, iterate on it and call UaServer_Removenode.

Post Reply