Delete unnecessary resources