Usually, they’ll do surgery to remove the ectopic pregnancy. Most often they do the surgery through a thin tube (laparoscope). If possible, your doctor will remove only the ectopic pregnancy.