That's not really an accurate history of the concept called magic. Magic was very prevalent during the Christian Middle Ages, long after the concept of God. Magic was "removed" from the world by the process of disenchantment (a translation of Entzauberung, literally "de-magicification" in German.)