In July 2010, Barack Obama, the US president, fired General Stanley McChrystal, then commander of US and NATO forces in Afghanistan, over remarks he and his aides made in an explosive Rolling Stone magazine article that disparaged the president and other civilian leaders.