Remove unnecessary resources