making Kirk forget Rayna
I don't believe Spock made Kirk completely forget about Rayna. But rather made Kirk forget the pain of her lose, her "death." Kirk would remember the events of that day, and in an abstract way that he loved Rayna.
But the pain would be gone.