Elective surgery is one that is not essential, such as a condition that is not life-threatening and not needed for survival.
Elective surgery usually is associated with cosmetic surgery.