changed file delete failure function