The 2004 film which has a couple undergoing medical procedures to have each removed from the other's memory is "Eternal Sunshine of the Spotless Mind". After a painful breakup, Clementine (Kate Winslet) undergoes a procedure to erase memories of her former boyfriend Joel (Jim Carrey) from her mind. When Joel discovers that Clementine is going to extremes to forget their relationship, he undergoes the same procedure and slowly begins to forget the woman that he loved. They however will meet after the procedures and start dating again. Directed by former music video director Michel Gondry, this visually arresting film explores the intricacy of relationships and the pain of loss.

"Eternal Sunshine of the Spotless Mind" is an American romantic science fiction comedy-drama which was written by Charlie Kaufman. Pierre Bismuth created the story with Kaufman and Gondry. The ensemble cast includes Carrey, Winslet, Kirsten Dunst, Mark Ruffalo, Elijah Wood, and Tom Wilkinson. The film's title is a quotation from the poem 'Eloisa to Abelard' (1717) by Alexander Pope.

Movie critics tells us that the film has elements included in psychological thrillers and a nonlinear narrative to explore the nature of memory and romantic love. It opened in North America to wide acclaim. Worldwide, it grossed over $70 million US dollars. It won the Academy Award for Best Original Screenplay, and Winslet got a nomination for the Academy Award for Best Actress.

More Info: en.wikipedia.org