Eternal Sunshine of the Spotless Mind
The same applies to scenarios about erasing memories. In Eternal Sunshine of the Spotless Mind (2004), Joel discovers that his ex-girlfriend Clementine has had him and their failed relationship erased from her memory. Enraged, he decides to undergo the same procedure at a clinic that carries out the “focused erasure” of troubling memories.
Watch the trailer and scenes from the movie below: