Trusting Christ is the way to get rid of the persistent bad thoughts, its his anointing that breaks the yoke. When you trust in Christ you access his power. His promises are the “handles” on accessing that power in your life. When you put faith in his promises then that promise is active for you. “whatever door you open in heaven is open in earth, and what ever door you close in heaven (spirit world) is closed in earth. So you open the door with the key, Putting faith in his word opens the doors or closes them.
Kings rule by decree, when you put weight or glory into his word you enter into Gods kingdom. The devils always broadcasting his dictates and they come through to us as urges or thoughts. Trusting Christ and his blood separates you from Satans kingdom since it separates you from sin, it takes away his legal rights (no access for him when your clean) and Gods promises gives you the “handles” so you can access what you need specifically. Isaiah 55:6-8 Turn to the LORD! He can still be found. Call out to God! He is near. Give up your crooked ways and your evil thoughts. Return to the LORD our God. He will be merciful and forgive your sins. The LORD says: “My thoughts and my ways are not like yours. (CEV)