Changed file attribute before deleting it.