Remove unnecessary resource.