To empty the heart does not mean to not love. On the contrary, true love, as God intented it, is purest when it is not based on a false attachment. The process of first emptying the heart can be found in the beginning half of the shahada (declaration of faith).
Yasmin Mogahed, Reclaim Your Heart: Personal Insights on Breaking Free from Life's Shackles
attachment, purpose-of-life