WordNet
n. amnesia about particular events that is very convenient for the person who cannot remember; "why do politicians always develop selective amnesia when questioned about their transgressions?"
Wikipedia
Selective amnesia is a type of amnesia in which the victim loses certain parts of his/her memory. Common elements that may be forgotten: relationships, special talents (e.g.: juggling, whistling, instrumental talents, etc.), where he/she lives, abilities in certain areas (e.g.: a new gymnast forgetting she cannot cartwheel yet), and events such as concerts, shows, or traumatic events (e.g.: a death/suicide of a loved one or attempt on one's own life).
Usage examples of "selective amnesia".
It's selective amnesia, you understand, just a loss of personal memories, not a loss of skills and education and whole blocks of social concepts.
Perhaps adrenaline was responsible for both her strength that night and the selective amnesia that followed.
Other than that, we found two other cases of your type of selective amnesia.
Either the head injury had resulted in selective amnesia - or he'd willed himself to forget.
Now he had to ask whether such selective amnesia could be an accident.
When his headache was gone, Leland had also lost his selective amnesia.