Question: what episode does ziva leave?
Answer: The season 10 finale "Damned If You Do" had its own storyline, which Glasberg "wove" into Ziva's exit.