Trying to resolve deletion of file