Question: when did gideon leave criminal minds?
Answer: In the Season 10 episode "Nelson's Sparrow," Gideon is murdered off-screen, having been shot dead at a close range by a serial killer named Donnie Mallick.