Demi Lovato has announced she is leaving Sonny With A Chance, the Disney TV series that made her famous.