Eternal Sunshine of the Spotless Mind [2004]
When their relationship turns sour, a couple undergoes a procedure to
have each other erased from their memories. But it is only through the
process of loss that they discover what they had to begin with.
in IMDB