How to Empty Heart from Dunya and Think About Allah?

As Muslims, we’re asked to think about Allah Almighty. How do we get rid of the things of this world to think about the Almighty?