<Tr> <Td> ← Previous "Michael's Last Dundies" </Td> <Td> Next → "The Inner Circle" </Td> </Tr> <Tr> <Td_colspan="2"> The Office (U.S. season 7) List of The Office (U.S. TV series) episodes </Td> </Tr> <P> "Goodbye, Michael", also known as "Goodbye Michael Scott", is the twenty - second episode of the seventh season of the American comedy series The Office and the show's 148th episode overall . It originally aired on NBC in the United States on April 28, 2011 . In the episode, Michael prepares to leave for Colorado with Holly and spends his last day in the office saying goodbye to everyone individually, wanting no drama to ensue . Meanwhile, new manager Deangelo and Andy try to keep Michael's biggest clients . </P> <P> The episode was written by series developer and executive producer Greg Daniels and was directed by Paul Feig . It marks the final appearance of Steve Carell as a series regular having announced he was leaving the series near the end of the sixth season . The episode aired in an extended 50 - minute timeslot, having originally been meant to be a two - parter combined with the previous episode, "Michael's Last Dundies". The episode featured guest appearances from Will Ferrell and Amy Ryan, and Andy Buckley appeared in a deleted scene . </P>

What season of the office did michael leave