Delete a RootNode within a Plugin.Action

Hi there,

i'm currently trying to delete a RootNode within a plugin.action, but i haven't found a way to do this so far. The CONTEXT_MODEL is only providing Methods to create or add nodes.

Does anyone know how to delete rootnodes within a plugin?

Cheers,
Simon
0
3 comments
Avatar
Permanently deleted user
How about:

this.model.getSModel().removeRoot(node);
0
Simon,

You can also try "delete" operation on your node:
node<> rootNode = ...;
rootNode.delete;

This will only work on the node<...> type

Regards,
Mihail
0
Avatar
Permanently deleted user
Hi Mihail,

node<> rootNode = ...;
rootNode.delete;


worked just fine. Thanks.

Best Regards,
Simon
0

Please sign in to leave a comment.