Hi @Ronnie09 , You need to used Node api for adding and removing .Using
Node APIAdapt the resource to NodeNode node =
resource.adaptTo(Node.class);Then remove a node using function
removenode(java.lang.String relPath, java.lang.String
primaryNodeTypeName)"node.remove(nodeName, NodePrimaryType);you can add
properties using function "setProperty(java.lang.String name,Value
value)"Save the session so that the new Node and its properties are
savedKr,Sanjay