Fix Nonexistsfile error when delete