Delete deletefiles list before writing to it.