Remade erasing node code in astute

Change-Id: I371009c1abf1d8cceca8f6a024e6d025f3fd1031