Make destroy-nodes return a sequence of removed node ids