set it to null
ptr->link = setnull();