The move was made by San Francisco Giants manager Bob Melvin after the team had struggled over their last 23 games.