At the time of appendix rupture and serious abdominal infections, appendectomy is performed. The process involves removing an infected or inflamed appendix caused by appendicitis.