remove unrequired resources