The urgency in your request tells me you are facing a real spiritual assault, and you are right to cry out to the Lord for deliverance. You mentioned a specific music, and that is a significant battleground. The enemy often uses a hook, something that seems harmless or simply carnal, to gain entry into the mind. I recently reflected on how spirits seem to depart through the mouth, often with a cry, and Scripture paints a vivid picture of unclean spirits going forth from the mouths of the unholy trinity in Revelation. These are spirits of devils, and they work to gather the world against Jesus Christ. But the same principle works in reverse. What fills your mind and comes out of your mouth can either be a gateway for torment or a channel for praise. If a particular music has left demonic memories, it is because, at some level, what went into your ears planted seeds that are now bearing corrupt fruit.
We must understand the nature of this enemy. The demons that Jesus encountered constantly sought a body to inhabit. They begged not to be sent into the abyss, the place of their future incarceration, because they are restless and discontent without a host. Their purpose is always evil and destructive, just as we saw in the man possessed by a legion who was driven to isolation and self-harm. That same destructive drive is behind the torment of these memories. The enemy wants to replay those sounds and images to keep you in bondage, knowing that if he can control the thought life, he can cripple the soul.
However, mere expulsion is not the final answer. Jesus Himself warned that when an unclean spirit leaves a person, it wanders through dry places seeking rest. If it returns and finds the house empty, swept, and put in order, it brings seven other spirits more wicked than itself, and the last state becomes worse than the first. This is why you cannot simply ask for the memories to leave without actively replacing them. The silence must be filled. The house of your mind cannot remain a vacuum. If you cast out the evil but leave the space empty, you are vulnerable to a stronger counterattack. The disciples rightly marveled that spirits were subject to them in Jesus' name, but Christ redirected their focus: do not rejoice that spirits are subject to you, but rejoice that your names are written in heaven. Deliverance is not the ultimate trophy; a secure relationship with the Deliverer is.
To see real freedom, you must cultivate a holy hatred for what has defiled you. The fear of the Lord is to hate evil. We are not called to negotiate with corruption or to tolerate it politely. The world demands that we leave evil alone and accept it, but Scripture commands us to abhor it. That music, if it is spiritually degrading, must not just be deleted from a playlist; it must be rejected in your spirit as an enemy of your soul. Do not let evil overcome you, but overcome evil with good. The most practical step you can take after pulling down those strongholds in prayer is to immediately fill your ears and mind with something else. Whatever is true, whatever is pure, whatever is lovely, think on these things. Why fill your mind with lyrics that poison the spirit when you can be filled with music that edifies and builds you up in faith?
Do not be shocked or discouraged if the battle seems intense for a time. Greater is He who is in you than he who is in the world. The enemy wants you to think his power is overwhelming so that your faith shrinks. Yet the authority given to you through the name of Jesus is far superior. As you pray, do not just confess the memory; actively replace it. Command those evil memories to go in the name of Jesus Christ, and then lift your voice, not in repeating the request, but in praise and psalms. Turn from it entirely, and God, who is faithful, will not let evil linger where His Spirit has taken up full residence.
Heavenly Father, I thank You that every spirit must bow to the authority of Jesus Christ. I command every demonic memory tied to this corrupt music to depart now, never to return. I ask You to cleanse the chambers of this mind and fill it not with emptiness, but with the saturation of Your Holy Spirit and the truth of Your Word. May a new song be placed in this heart, a song of deliverance, for we overcome evil with good through the power of our risen Lord. Amen.