Cannot delete log file from my Windows PC - says it's open in Explorer

I was analyzing logs and placed a log file in a directory on my Windows 10 PC. When I try to delete or move it the system says that it cannot because the file is currently open in Explorer. I do not understand that and I also don’t think it is open in explorer.

Any tips on how I can get rid of the file?

Thanks,

Paul

Reboot your computer should help.

Thanks Thomas, that worked. Paul