kasta ut barnet med badvattnet

Etymology
From, from.

Verb

 * 1)  to throw the baby out with the bathwater