delete attach when delete client