An ovarian cystectomy is a type of surgery. It removes a cyst from your ovaries. It's usually done only if the cyst is large or painful.