Clean unnecessary resources