delete a linked list