shut out

To stop sth (sb) from entering a location

I want to shut out the bad memories from my mind.