delete linked list in doctor