Psalm 51:11 Do not cast me from your presence or take your Holy Spirit from me.
Is it possible that God would take his Holy Spirit from us?
In Hebrew Tanakh [Tehillim (Psalms) 51:13] "Do not take Your Holy Spirit from me" ( וְר֥וּחַ קָ֜דְשְׁךָ֗ אַל־תִּקַּ֥ח מִמֶּֽנִּי ). - Taking the Holy Spirit (Ruach Qadesh) from a person = being 'Brought into Temptation'. [Matthew 6:13]
Yes - It is possible to lose our purity in context to Hebrew (Ivri, עִבְרִ֑י ) theology.
No, it is not possible to have the spirit taken away in the way it was in the Old Testament.
JOHN 14:16 And I will pray the Father, and He will give you another Helper, that He may abide with you forever
In the Old Testament, the Holy Spirit could only come ‘on’ man. And even then, only some, example Kings, Prophets, and even then, ‘at times’. And - In Old Testament times, his presence could/would be ‘lifted’ off or away - dependant on what man ‘did’.
Where as we can have Him, the Holy Spirit, ’in’ us.
Jesus needed to ‘die’ so that we (our body, the temple of the Holy Spirit.) could be ‘cleansed’ - because it needed to be cleansed before it could be used. And, our righteousness, our ‘cleanliness’ Is not dependant on anything we do. It was/is dependant on what Jesus did.