<P> Due to the Halloween concept of the episode, the cast members of The Office were allowed to wear costumes rather than their "usual, realistically plain suits". B.J. Novak, writer for the series as well as actor, called the experience "fun". The episode features the last on - screen appearance of the background character Devon until the series finale . The episode earned a Nielsen rating of 4.1 in the 18--49 demographic and was viewed by 8 million viewers . </P> <P> Although informed early in October that he must fire somebody by the end of the month, Michael Scott (Steve Carell) waits until the last day of the month, Halloween, and still hasn't fired anyone . Meanwhile, Jim Halpert (John Krasinski) and Pam Beesly (Jenna Fischer) post Dwight Schrute's (Rainn Wilson) résumé on the internet, and when a prospective employer (Cumberland Mills in Maryland) calls, Jim pretends to be Michael and gives Dwight a great reference . When the company calls Dwight to set up an interview, Dwight immediately ruins his chances by arguing with the caller over the importance and relevance of martial arts in his résumé . Later in the day, Pam suggests that Jim should apply for the Cumberland Mills position . Jim is quietly hurt by the suggestion that Pam would not miss him if he left . </P> <P> After several failed attempted firings of other employees, Michael calls Creed Bratton (Creed Bratton) into his office to fire him . Creed, in turn, convinces Michael to let Devon (Devon Abner) go . After Michael fires Devon, Devon angrily rebuffs Michael's attempts to save their friendship, and invites everyone in the office (except Michael, Creed, Dwight and Angela) to join him at a local bar . As Jim leaves, Pam apologizes for pushing him into taking the Cumberland job and assures him that she would "blow her brains out" if he ever left . Jim admits to the camera that Pam is the only thing keeping him there . When the group leaves the office, Devon smashes a pumpkin over Michael's car in revenge . </P> <P> At the end of the episode, Michael is alone at his home in front of the television, upset over firing Devon . When trick - or - treaters come, Michael cheerfully gives them a generous amount of candy . </P>

Who does michael fire in the halloween episode