Progress on delete and write to file