Remove unused resources and headers.