An orchiectomy is the surgical removal of one or both testicles to treat testicular cancer. A person can speak with a doctor to find out how to prepare for the surgery and what to expect afterward.