Remove extra resources.