全功盡棄

Idiom

 * 1) to nullify all the advantages; to waste all efforts made