( informal ) to lose sth that you want at the same time as you are trying to get rid of sth that you do not want
THROW THE BABY OUT WITH THE BATHWATER
Meaning of THROW THE BABY OUT WITH THE BATHWATER in English
Oxford Advanced Learner's English Dictionary. Оксфордский английский словарь для изучающик язык на продвинутом уровне. 2005