What is the meaning of [Throw the Baby Out with the Bath Water]

To discard something valuable or important while disposing of something worthless