When the Ephesians believed on Christ, they examined the moral nature of each aspect of their lives. This led them to burn their curious arts books.
God expects His people to avoid unholy practices (i.e., divination, observing of times, witchcraft, wizardry, necromancing) that ensnare the world.
Seeking counsel or instruction from spirits or from the deceased is a wicked practice and demands God's righteous judgment.