remove scope after deleting node