delete useless resourses