Question: what episode does michael leave the office?
Answer: Goodbye, Michael. Episode no. "Goodbye, Michael" is the twenty-second episode of the seventh season of the American comedy series The Office and the show's 148th episode overall.