Can't delete file. Something has it opened.

I went to install a VM (a 2019 Server VM on a 2019 Server). It asked for the ISO to install it. I pointed it to the right ISO and it installed. Working great. Now I went back to delete that ISO and it says it can't because it is open in "System".

   This has been happening for years but I need to revisit it. In this day and age is there any simpler way to tell what process or user has this file open other then process monitor, wholockme or the others? What is the current method for determining what has this file open?
LVL 15
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
You can just shutdown the entire VM. That will close the file.
LockDown32OwnerAuthor Commented:
Well.... that did the trick but then the VM wouldn't restart so I had to restore it from the recycling bin. Why in the would would it, at this point, need the ISO to run?  I know a 4GB file isn't absolutely huge but I seen no need in keeping it around. I have a copy on DVD.
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
Once you insert the DVD its mounted to the local mount point. Is it possible if you can unmount the DVD inside the guest and then try deleting it ?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LockDown32OwnerAuthor Commented:
Thanks gents. It was still mounted as a DVD in the VM. Once I "ejected" I could delete the ISO. Never would have thought that to be the issue.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.