If needed, the whole inner lining of the uterus, or endometrium, can be taken out to check for cancer cells. Removing the endometrium can also treat some conditions that cause abnormal bleeding.