gonadectomy

noun
  1. surgical removal of a gonad (testis or ovary)
  2. Usage: medical/surgical term; also called castration when referring to testis removal

Examples