delete unused resource
fix failed remove