The Philadelphia Phillies are cleaning house.

In two deadline day deals, the former National League powerhouse traded traded two-time all-star right fielder Hunter Pence to the San Francisco Giants for three players and two-time all-star centre-fielder Shane Victorino to the Los Angeles Dodgers for relief pitcher Josh Lindblom and minor league pitcher Ethan Martin.

The last-place Phillies get outfielder Nate Schierholtz, minor league catcher Tommy Joseph and minor league right-handed pitcher Seth Rosin for Pence.

Pence is batting .271 with 17 homers and 59 runs batted in this season. Schierholtz batted .257 with five homers and 17 RBIs in 77 games.

Joseph was San Francisco's No. 2 ranked prospect by Baseball America. He is hitting .260 with eight homers and 38 RBIs in 80 games for AA Richmond this season.

Philadelphia also gets a player to be named later or cash for the 31-year-old Victorino, who can become a free agent after the season.

Victorino is batting .261 with nine homers, 40 RBIs and 24 steals. He helped the Phillies win five straight NL East titles and the 2008 World Series championship.

Lindblom is 2-2 with a 3.02 ERA in 48 relief appearances for Los Angeles.

Cubs send Soto to Rangers

The Texas Rangers have acquired catcher Geovany Soto from the Chicago Cubs for right-hander Jake Brigham and a player to be named or cash.

Soto was expected to be in uniform Tuesday night against the Los Angeles Angels. To make room on the roster, the Rangers designated catcher Yorvit Torrealba for assignment.

The 29-year-old Soto was the NL rookie of the year in 2008, when he hit .285 with 23 home runs. But he hit just .199 with six homers and 14 RBIs in 52 games for the Cubs this season.

Torrealba hit .236 in 49 games in his second season with the Rangers.

Brigham was 5-5 with a 4.28 ERA in 21 starts for AA Frisco. He was a sixth-round pick by Texas in 2006.

Yankees snag Casey McGehee

The New York Yankees have obtained third baseman Casey McGehee from Pittsburgh for reliever Chad Qualls, a move that following injuries to Alex Rodriguez and Mark Teixeira.

McGehee, 29, is hitting .230 with eight homers and 35 RBIs.

The 33-year-old Qualls was acquired by the Yankees from Philadelphia on July 1 and made eight appeaances.

Cardinals pick up Mujica

The St. Louis Cardinals acquired bullpen help at the trade deadline, getting right-hander Edward Mujica from the Miami Marlins for 2010 first-round pick Zack Cox.

The 28-year-old Mujica is 0-3 with a 4.38 ERA and two saves in 41 games and has held right-handed hitters to a .211 batting average. Last year he was 9-6 with a 2.96 ERA.

The 23-year-old Cox was batting .254 with nine homers and 30 RBIs at Triple-A Memphis. He was the 25th overall pick in the 2010 amateur draft out of Arkansas and jumped from Class A Palm Beach to AA Springfield last season.

Pirates land Sanchez from Marlins

The Pittsburgh Pirates have acquired former all-star first baseman Gaby Sanchez from the Miami Marlins in a deal shortly before the trade deadline.

The Pirates also got minor league pitcher Kyle Kaminska on Tuesday for minor league outfielder Gorkys Hernandez and one of baseball's new extra draft picks given to financially weaker teams.

The 28-year-old Sanchez was having a disappointing year. He was batting only .202 with three home runs and 17 RBIs, and had been demoted to AAA in May for nearly a month.

Sanchez hit 19 home runs in each of the previous two seasons and was an NL all-star last year.

The Marlins recently traded away star infielder Hanley Ramirez and pitcher Anibal Sanchez.

Red Sox deal Podsednik, trade for Wright

The Red Sox have traded outfielder Scott Podsednik and right-hander Matt Albers to the Arizona Diamondbacks for left-hander Craig Breslow.

The 36-year-old Podsednik hit .387 with three doubles, one homer and seven RBIs for Boston this year.

Albers, 29, was 2-0 with a 2.29 ERA in 40 relief appearances.

The 31-year-old Breslow, obtained from Oakland in December, was 2-0 with a 2.70 ERA in 40 relief appearances. He appeared in 13 games for the Red Sox in 2006.

The Red Sox also acquired right-handed knuckleballer Steven Wright from the Cleveland Indians for first baseman Lars Anderson on Tuesday.

Wright was 9-6 with a 2.49 ERA at Double-A Akron. Boston, which had knuckleballer Tim Wakefield in its rotation for many years, assigned Wright to Double-A Portland.

The 27-year-old Wright has never pitched in the majors. In six minor league seasons, he is 38-33 with a 3.95 ERA.

The 24-year-old Anderson hit .259 with nine homers and 52 RBIs at Triple-A Pawtucket. Anderson has spent parts of the last three seasons with the Red Sox, batting .167 in 30 games.

Reds acquire Broxton from Royals

The Reds strengthened the back end of their bullpen by acquiring closer Jonathan Broxton from Kansas City for a pair of minor leaguers.

Manager Dusty Baker said after Tuesday's trade that Broxton will be a setup man for closer Aroldis Chapman and can finish games when the left-hander isn't available.

Cincinnati was hoping to upgrade its starting lineup, but general manager Walt Jocketty said the asking price was too high for the NL Central leaders.

Broxton agreed to a $4 million, one-year deal before the season, giving the Royals a steady setup man for closer Joakim Soria. He moved into the closer's role when Soria needed reconstructive elbow surgery in March and has saved 23 games in 27 chances.

The Reds expect him to arrive Wednesday.