delete useless samples