An appendectomy is surgery to remove the appendix. The appendix is a small, finger-shaped organ that branches off from the first part of the large intestine. The appendix is removed when it becomes swollen (inflamed) or infected. This condition is called appendicitis. An appendix that has a hole in it (perforated) can leak and infect the entire abdomen area.