remove node and its links