delete useless input