If, when trying to delete, move, or even open a file, a message appears that the file is being used by another process and the operation cannot be performed (or without explanation), then you can try to find and close it, unless of course this is a system critical process.
Launch the task manager, go to the "Performance" tab, click the "Open Resource Monitor" link at the bottom.
Or press Win + R and enter resmon.
Go to the CPU tab, write in the marked field the name (or part) of the desired file or folder, below will display all the processes that are accessing the object at the moment.
It is not necessary to close all processes, some may access the file read-only and will not affect access to the file in any way.