Donald Trump has purged top military figures in the Pentagon, including firing America's most senior commander.