Delete files if cannot be written to