For patients with breast cancer, a mastectomy has 2 goals:  To remove the whole tumor and all breast tissue from 1 or both breasts. To check the lymph nodes in the armpit to make sure the tumor has not spread to them.