Delete thread in server.