delete thread test