Need a word/phrase/proverb for this situation [closed]

"Throwing the baby out with the bathwater." While disposing of waste,(the dirty water) you inadvertently got rid of something valuable (the baby).


Exacerbate?

make (a problem, bad situation, or negative feeling) worse.

-ODO