to remove resources