The best thing I have found so far to get rid of phlegm is Mucinex. It is pricey, but it works! Walmart has a store brand but it just doesn't work as well.
Drink lots of liquids, including warm liquids, clear soups, and cut back on phlegm-causing foods, like dairy.
Best of luck.