I usually buy a bottle of white vinigar and run it through the coffee pot one time. Then I dump it out and run water through it 2 or 3 times to get rid of any lingering vinigar smell or taste.
This works well for cleaning a stained coffee pot and it helps to remove nasty tastes from mineral buildup and such in the coffee maker and pot.