Remove unneeded resources