Zach Braff will be leaving 'Scrubs' after the upcoming season.

Variety reports that the show's creator, Bill Lawrence, made the announcement at an event for US television critics.

Lawrence said: "The end of the show (season) will be about JD (Braff) leaving the hospital. When you leave, it's about holding on to your relationships."

When asked how long 'Scrubs' would continue, Lawrence said: "You can't kill this show."

Braff has said that he would be open to returning to the show as a guest star and could possibly direct episodes of 'Scrubs'.