remove thread in example