I am certain yuou are right. It's an emptying out of defilements that result from both cravings and attachments. There is a writing on this theme by a monk in Thailand, originally in Thai, but with the Englsih title "Cleansing the Human Mind: A Purification of the Thought Processes." It identifies a number of negative thought patterns we inadvertently invite upon ourselves and the futility of dwelling in them.