Red Sox release Tyler Thornburg

Thornburg had been with the Red Sox since 2017

Red Sox manager Alex Cora takes the ball from relief pitcher Tyler Thornburg, who was released by the team Wednesday. –Peter Abraham/Globe Staff

The Red Sox finally gave up on Tyler Thornburg and released the righthanded reliever on Wednesday, bringing to an end 2½ years of frustration.

Thornburg competed a 30-day rehabilitation assignment with Triple A Pawtucket on Tuesday but remained on the injured list. Once Thornburg refused to continue his minor league assignment, which was his right, he was released.

The Sox owe him the balance of his $1.75 million contract and Thornburg is free to sign with another organization.