I have attached json where I want to remove the node main and add again, I have done the operation separately and its doing fine but when I use same json to delete Main folder(node) and re-add same node again then I get ambiguity that it already exists, I have used set-content or out-file still the prob is there
(Main contain 2 child Ann and Eric, I am deleting Main with all nested child and re-add only Main)