Deleting vectors after iteration