The Boston Red Sox have designated Hanley Ramirez for assignment.

The move created a roster spot to activate Dustin Pedroia from the disabled list.

Ramirez has more than $15 million left on his contract this season. 

Ramirez has an option on his contract worth $22 million for 2019 that would vest if he reaches 497 plate appearances this season. 

Ramirez is hitting .254 with six home runs and 29 RBIs this season, starting 25 games at first base and 19 at designated hitter.

Ramirez signed a four-year, $88 million contract with the Red Sox in 2014.