in kh re:com, he loses memories in caslte oblivion due to namines powers of altering memories, for the organizations wishes. at the end of the game she puts him in the pod he comes out of in kh2 to restore his memories. in between these is the storyline for coded i think due to corrupt memories