The most commonly used medicine to treat ectopic surgery is methotrexate. This medicine stops the fetal cell from growing, which ends the pregnancy. The remaining cells get absorbed by the body in 4-6 weeks. In such cases, it is not necessary to remove the fallopian tube.