NBA legend Yao Ming has quit as head of the Chinese Basketball Association (CBA) after seven years in the job because of the national team's poor performances, he said Thursday.