Arcana Coelestia # 9343
9343. And I will drive them out from before thee. That this signifies their removal, is evident from the signification of “driving out,” when said of evils, as being removal (see n. 9333).
Arcana Coelestia # 4544
4544. Put away the gods of the stranger which are in the midst of you. That this signifies that falsities should be rejected, is evident from the signification of “to put away,” as being to reject; and from the signification of the “gods of the stranger,” as being falsities. For by “gods” in the Word are signified truths, and in the opposite sense falsities (n. 4402); and those were called “strangers” who were outside of the church, consequently those who were in falsities and evils (n. 2049, 2115). Therefore the “gods of the stranger” denote falsities.