remove resources for unused.