EDOC-650 : fix node deletion