remove some config in resource