What is the meaning of [Don’t throw the baby with the bathwater.]

Don’t discard something valuable while getting rid of something worthless.

Example: We shouldn’t scrap the entire project for a subpart not planned well. Let’s not throw the baby with the bathwater.