delete useless element.