An epididymectomy is a surgery to remove the epididymis. An epididymis is a tube that holds sperm. You may need this surgery if you have an infection, tumor, or cyst.