Delete link when node is deleted

Fixes #4