Question: what episode of criminal minds does elle leave?
Answer: A short time after the shooting — during the episode "The Boogeyman" — Greenaway resigns from the BAU, right before Hotchner is about to fire her.