I think you're mixing things up a bit, before the baby is conceived, there's nothing to "get rid of". Conception happens when a sperm cell metts an egg, and they start multiplying to create an embriyo. Before that, there is no baby.
You can take a morning after pill after having unprotected sex, which will change the hormone levels in the woman's body, to prevent any conception from actually positioning itself in the uterus, which is necessary for the pregnancy.
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them