Sonny Gray has been moved to the bullpen.

After a string of bad outings in a bad season, including getting rocked for seven runs by the pitiful Orioles on Wednesday afternoon, the Yankees have had enough. GM Brian Cashman announced on WFAN on Thursday afternoon that Lance Lynn will take Gray’s spot in the rotation.

The Yankees dealt for Lynn on Monday. He made his first appearance Wednesday, in mop-up duty after Gray was removed before the third inning ended. He threw 4 1/3 scoreless innings.

“I don’t think my days as a starting pitcher in this league are over,” Gray said after he was informed, adding he would now try to help as a reliever.

At least for now, though, they are.