delete useless res dir