delete useless resource