Deleting unnecessary resources