remove resources.