delete ref node