Sometimes an operation to remove the testicles (orchiectomy) is done to stop the testicles from making testosterone, the main male hormone.