reject all of something because part of it is faulty When they decided to get rid of all of the computers because one was broken it was like throwing the baby out with the bath water. They only needed one new computer.
THROW THE BABY OUT WITH THE BATHWATER
Meaning of THROW THE BABY OUT WITH THE BATHWATER in English
English idioms vocab. Словарь английских идиом и выражений. 2012