Twins righthander Samuel Deduno will have arthroscopic surgery on his right shoulder Wednesday and will need about two months to recover.

The Twins have been leaning toward Deduno having surgery over the past few days and General Manager Terry Ryan made the decision official on Friday. A magnetic resonance imaging exam of the shoulder revealed fraying of the labrum.

“He’s going to have a cleanup of that shoulder” Ryan said. “It is not a serious surgical procedure but it’s something that we think that needs to be done.”

It’s a tough way for the 30-year-old Deduno to end the season. He made more strides toward establishing himself as a reliable starter going 8-8 with a 3.83 ERA and giving up only seven home runs over 108 innings. But he battled shoulder soreness late in the season and was pulled from an Aug. 29 start against Kansas City when his pitches lost their sharpness.

The surgery and subsequent rehabilitation dashes any chance Deduno had of pitching in winter ball.