It t is imperitive to get sins out of the way before the holy Spirit can take up resident. The process of repentance is to sweep, scrape, scrub and cast out of doors all defilement of the heart IN ORDER to make it clean for the reception of the Holy Spirit. (Acts 5:32).
Also, according to Jesus, it is dangerous to clear out evil without filling the vacuum that is left. (Matt. 12:43-45; Luke 11:24-26)