Eternal Sunshine of the Spotless Mind

Imagine a procedure whereby you could rid yourself of troubling memories.  Suppose that you could have particular people or traumatic events erased from your mind. This is the basis for Michel Gondry’s Eternal Sunshine of the Spotless Mind, where just such a procedure helps rid tormented souls of the memories of their lost loves. If the science-fiction like technology shown in Eternal Sunshine was available, ought we to use it? Under what circumstances, if any, would we be justified in erasing our memories?