adding some lua script for deleting nodes

now deleting a node is atomic thanks to lua script