synonym of 前功盡棄 /前功尽弃 (qiángōngjìnqì, “all previous achievements go down the drain; all the previous effort is wasted”)
Wiktionary