delete useless classes