The Pirates signed Ramirez to a minor-league contract on Oct. 13.
Ramirez cleared waivers and was outrighted to Triple-A Worcester by the Red Sox on Friday, Ian Browne of MLB.com reports.
The Red Sox designated Ramirez for assignment Wednesday, Ian Browne of MLB.com reports.
The Red Sox claimed Ramirez off waivers on Sunday, Rob Bradford of WEEI.com reports.
The Dodgers designated Ramirez for assignment Thursday.
Ramirez (0-5) allowed two runs (one earned) on three hits while striking out one batter against Detroit on Sunday. He was charged with a blown save and a loss.
Ramirez recorded his first save of the season in Friday's 2-1 win over the Yankees, giving up one unearned run on one hit in the 11th inning. He struck out two.
The Dodgers acquired Ramirez from the Mets on Monday for cash consideration, Fabian Ardaya of The Athletic reports.
The Mets designated Ramirez for assignment Wednesday.
The Mets claimed Ramirez off waivers from the Orioles on Monday, Tim Britton of The Athletic reports.