Question: how did ziva leave ncis?
Answer: In season thirteen ("Family First"), Ziva's farmhouse is destroyed in a mortar attack ordered by CIA Agent Trent Kort. Although Tali is found alive, the NCIS crew are informed that Ziva is dead, though her remains are not found at the house.