delete unused res