example: remove the unnecessary resources.