In order to stay away from trash that enters mind without permission, keep your mind engaged in grand pursuits.
Let it focus on your goals and sooner than you think, all the wandering in and about the past hurts ceases.
Devils enter only an abandoned abode, not the happily focussed human mind