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
3 comments
Comment actions Permalink
How about:

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

You can also try "delete" operation on your node:
node<> rootNode = ...;
rootNode.delete;
prettyPrint();
This will only work on the node<...> type

Regards,
Mihail
0
Comment actions Permalink
Hi Mihail,

node<> rootNode = ...;
rootNode.delete;
prettyPrint();


worked just fine. Thanks.

Best Regards,
Simon
0

Please sign in to leave a comment.