Hydrocelectomy is a surgical procedure to remove a hydrocele, which is a fluid-filled sac around a testicle that causes swelling in the scrotum. It is typically performed to relieve discomfort or improve cosmetic appearance, especially when the hydrocele does not resolve on its own or causes complications.