Iterate over a list when deleting data files