delete links when node is deleted