Giles has a 4.99 ERA this season with 12 saves and 31 strikeouts in 34 games.
Giles has had a tumultuous season so far with several poignant negative moments.
Lefthander Cionel Perez will take Giles' spot on the roster. When manager A.J. Hinch pulled him from the game, Giles muttered what looked like an expletive as he was leaving the mound.
With the Phillies, Giles struck out 151 batters in 115.2 innings, allowed just 20 earned runs over that time and finished fourth in rookie of the year voting his first season.More news: Police officer resigns ahead of hearing on Puerto Rico shirt incident
More news: Suspected Gunman In Rapper XXXTentacion’s Murder Arrested
More news: Married N.J. woman, mechanic die during sex in her garage
Setting Tuesday night's foot stomping aside, this is one in what has been a line of problematic appearances for the former closer.
In parts of three seasons with the Astros, Giles' ERA has ballooned to 3.57, compared to 1.56 during his two seasons in red pinstripes. He went 0-2 with a 11.74 ERA in 7⅔ innings.
It was bad enough in the 2017 postseason that Giles was essentially benched, working fewer than 8 innings in the entire playoffs including the World Series. The game was ultimately tied and the Astros lost in extra innings.
And this incident, along with his generally churlish attitude, seemed out of place set against the backdrop of the mostly mild-mannered and fun-loving Astros clubhouse. He promptly punched himself in the face on his way off the mound.
Perez, 22, has never pitched in an Major League Baseball game.